Skip to content
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

Fixed ClippingNode stencil needing global z set manually #1831

Merged
merged 1 commit into from
Apr 17, 2024

Commits on Apr 17, 2024

  1. Fixed ClippingNode stencil needing global z set manually

    This bug has existed since the Cocos2d-x 3.x days. If you set the global z order of a ClippingNode to anything other than the default value, then the ClippingNode fails to clip anything unless the global z order is also set for the Stencil of that ClippingNode. This change makes the ClippingNode._stencil's global z order to follow the ClippingNode's. (Note: you could still manually set the global z order of the stencil as desired to break the clipping. But now the default behavior works correctly and the way one would expect.)
    TyelorD committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    c06602c View commit details
    Browse the repository at this point in the history