Skip to content

[BUGFIX] Fix character icons sometimes not appearing in Stage Editor#7550

Open
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:fix/stage-editor-pixel-icons-not-loading
Open

[BUGFIX] Fix character icons sometimes not appearing in Stage Editor#7550
VICK-sys wants to merge 1 commit into
FunkinCrew:developfrom
VICK-sys:fix/stage-editor-pixel-icons-not-loading

Conversation

@VICK-sys
Copy link
Copy Markdown

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

Linked Issues

Fixes #7500

Description

CharacterDataParser.getCharPixelIconAsset built a fresh FlxGraphic via FlxGraphic.fromFrame but only held it through a local FlxImageFrame. After the function returned, useCount dropped to 0 and Flixel destroyed the graphic on its next sweep — the returned FlxFrame.parent was now invalid:

[WARNING] Invalid call to getFramesCollections on a destroyed graphic
[ERROR] Cannot render a destroyed graphic, the placeholder image will be used instead.

The Stage Editor's Character Properties button (and picker grid) were the visible victim — they showed the FlxSprite default placeholder. Set destroyOnNoUse = false on the constructed graphic so it survives past the function scope.

Screenshots/Videos

Demo.mp4

@github-actions github-actions Bot added size: tiny A tiny pull request with 4 or fewer changes. status: pending triage Awaiting review. pr: haxe PR modifies game code. and removed status: pending triage Awaiting review. labels May 8, 2026
@NotHyper-474 NotHyper-474 added type: minor bug Involves a minor bug or issue. topic: stage editor Related to the operation of the Stage Editor. status: pending triage Awaiting review. labels May 8, 2026
@VirtuGuy
Copy link
Copy Markdown
Contributor

VirtuGuy commented May 9, 2026

Dude you're on a roll!

@Hundrec Hundrec changed the title fix: Keep character pixel-icon graphics alive after asset extraction [BUGFIX] Fix character icons sometimes not appearing in Stage Editor 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: tiny A tiny pull request with 4 or fewer changes. status: pending triage Awaiting review. topic: stage editor Related to the operation of the Stage Editor. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

Bug Report: Pixel icons sometimes don't load in the Character Properties tab in Stage Editor

3 participants