Skip to content

added productive error when loop protection breaks in p5.strands#8725

Open
kushal1061 wants to merge 1 commit intoprocessing:dev-2.0from
kushal1061:improve/strands-loop-protection-error
Open

added productive error when loop protection breaks in p5.strands#8725
kushal1061 wants to merge 1 commit intoprocessing:dev-2.0from
kushal1061:improve/strands-loop-protection-error

Conversation

@kushal1061
Copy link
Copy Markdown

Resolves #8721

Changes:

  • Added detection for loop-protection code (e.g. loopProtect / $OP.loopProtect) in user sketches before p5.strands transpilation.
  • Loop protection breaks p5.strands shader compilation, an error is now thrown early with a clear message.
  • The error instructs users to add // noprotect at the top of their sketch to disable loop protection.

Screenshots

Old error:
Old error

New error after changes:
New error

PR Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant