Skip to content

[BUGFIX] Prevent Stage Editor crash on animate atlas props#7532

Open
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:fix/stage-editor-animate-atlas-crash
Open

[BUGFIX] Prevent Stage Editor crash on animate atlas props#7532
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:fix/stage-editor-animate-atlas-crash

Conversation

@VICK-sys
Copy link
Copy Markdown

@VICK-sys VICK-sys commented May 7, 2026

Linked Issues

Fixes #7499

Description

Opening any stage with an animate-atlas prop (e.g. Spooky Mansion's halloween_bg) crashed the Stage Editor because StageDataHandler called
Assets.getBitmapData(Paths.image(...)) on every prop, but animate-atlas assets are directories, not flat PNGs.

Now both load paths guard with Assets.exists first. Unsupported props are stashed on the StageEditorObject as preservedData and rendered as a magenta
placeholder; packShitToZip writes preservedData verbatim so save round-trips the original block unchanged with no data loss. A notification fires on load
when any props are preserved.

Screenshots/Videos

Demo.Video.mp4

@github-actions github-actions Bot added status: pending triage Awaiting review. pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. labels May 7, 2026
@NotHyper-474 NotHyper-474 added type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression topic: stage editor Related to the operation of the Stage Editor. labels May 7, 2026
@Hundrec Hundrec linked an issue May 9, 2026 that may be closed by this pull request
4 tasks
@Hundrec Hundrec self-requested a review May 9, 2026 06:34
@Hundrec Hundrec changed the title fix: Prevent Stage Editor crash on animate atlas props [BUGFIX] Prevent Stage Editor crash on animate atlas props May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. topic: stage editor Related to the operation of the Stage Editor. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression

Development

Successfully merging this pull request may close these issues.

Crash Report: Opening stages with Animate Atlas props crashes the Stage Editor

2 participants