Skip to content

PShapeOpenGL setAttrib() warning says "setNormal()" instead of "setAttrib()" #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
processing-bot opened this issue Oct 5, 2020 · 2 comments

Comments

@processing-bot
Copy link
Collaborator

In GitLab by @nking07049925 on Oct 5, 2020, 12:11

Expected Behavior

Calling setAttrib() on PShapeOpenGL between beginShape() and endShape() prints a warning setAttrib() can only be called outside beginShape() and endShape()

Current Behavior

Calling setAttrib() on PShapeOpenGL between beginShape and endShape prints a warning setNormal() can only be called outside beginShape() and endShape()

Possible Causes / Solutions

Replace PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setNormal()"); with PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setAttrib()"); for all overloads of setAttrib() in PShapeOpenGL.java

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Thanks for the catch; fixed for 4.0a3.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant