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

Clip Children has weird behaviour with background image #87060

Closed
julianstys opened this issue Jan 10, 2024 · 1 comment
Closed

Clip Children has weird behaviour with background image #87060

julianstys opened this issue Jan 10, 2024 · 1 comment
Labels

Comments

@julianstys
Copy link

Tested versions

  • Reproducible in: 4.2.stable

System information

Godot v4.2.1.stable - macOS 14.2.1 - Vulkan (Mobile) - integrated Apple M2 Pro - Apple M2 Pro (12 Threads), also reproducible on Windows 10

Issue description

I'm converting my project from Godot 3 to 4, and I've tried implementing a 2D sprite mask. Godot 3 implements this using PointLight2D, but Godot 4 needs to use a Sprite2D with Clip Children. But I get very strange behaviour when I have a background image behind the sprite mask, the mask copies the background image and moves around when moving the sprite mask or it's children around as well, even though the background image isn't a child of the mask.

I've uploaded a preview video of what I mean as well as the sample project since it's hard to explain. This is only an issue when Clip Children is enabled.

Screen.Recording.2024-01-10.at.1.41.58.PM.mp4

Steps to reproduce

I've uploaded the sample project, just move the mask, star and Label nodes around to see the issue. Also panning, and zooming in/out in the editor produces the same issue.

Minimal reproduction project (MRP)

Godot_text_mask_bug.zip

@clayjohn
Copy link
Member

Thank you for the report. This is a known issue and has an open report already: #75956

So I'll close this issue in favour of #75956 so we can track the issue in one place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants