Skip to content

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

@processing-bot

Description

@processing-bot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions