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

avm2: Use invisible mask descendants for mouse picking and rendering #12150

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

Aaron1011
Copy link
Member

@Aaron1011 Aaron1011 commented Jul 19, 2023

The 'DisplayObject.visible' flag seems to be ignored for mask objects (and their descendants) - mouse picking still takes them into account, and they get rendered as part of the mask.

This commit changes display object rendering and AVM2 mouse picking to ignore DisplayObject.visibility when dealing with mask objects/ descendants.

Fixes #12107

core/src/display_object/container.rs Outdated Show resolved Hide resolved
@Aaron1011 Aaron1011 force-pushed the hit-invisible-mask branch from 95c7d1e to e28c02c Compare July 19, 2023 01:47
@Aaron1011 Aaron1011 force-pushed the hit-invisible-mask branch from e28c02c to f9baebe Compare July 19, 2023 14:08
The 'DisplayObject.visible' flag seems to be ignored for mask objects
(and their descendants) - mouse picking still takes them into account,
and they get rendered as part of the mask.

This commit changes display object rendering and AVM2 mouse picking
to ignore DisplayObject.visibility when dealing with mask objects/
descendants.
@Dinnerbone Dinnerbone force-pushed the hit-invisible-mask branch from f9baebe to 10507db Compare July 19, 2023 21:00
@Dinnerbone Dinnerbone enabled auto-merge (rebase) July 19, 2023 21:00
@Dinnerbone Dinnerbone merged commit 715abd8 into ruffle-rs:master Jul 19, 2023
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.

Ancient Odyssey - Can't click play button
3 participants