Skip to content

Hide clipping characters without active mask targets#49

Open
asimetra wants to merge 1 commit intoopenfl:masterfrom
asimetra:master
Open

Hide clipping characters without active mask targets#49
asimetra wants to merge 1 commit intoopenfl:masterfrom
asimetra:master

Conversation

@asimetra
Copy link
Copy Markdown

SWF semantics define ClipDepth > 0 as a clipping character: the character itself is not displayed, and ClipDepth specifies the highest depth it masks. Previously, the runtime only treated the character as a mask after finding a target object in (depth, clipDepth]. If no such target existed on that frame, no mask/clippingLayer assignment happened, so OpenFL rendered the clipping character normally.

The fix leaves the existing depth-range mask assignment unchanged, but also marks active clipDepth > 0 placements as timeline masks after frame processing. This keeps clipping characters hidden even before any target child appears.

@joshtynjala
Copy link
Copy Markdown
Member

@asimetra Can you add a small sample project that demonstrates the issue? Thanks!

@asimetra
Copy link
Copy Markdown
Author

Added under samples/clip-depth-no-target

I can move it elsewhere if preferred.

@joshtynjala
Copy link
Copy Markdown
Member

@asimetra I meant that you should attach the project to this issue (as a .zip file or whatever), rather than committing it to the repository. Sorry if I wasn't clear.

@asimetra
Copy link
Copy Markdown
Author

Sorry, i misunderstood. I removed the sample and attached here

clip-depth-no-target-repro.zip

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.

2 participants