Skip to content

Commit

Permalink
Fix FlxNestedSprite showing default icon incorrectly (#415)
Browse files Browse the repository at this point in the history
By adding a check for existence on _frame (which FlxSprite uses to insert the default png)
when drawing the element this prevents the default behavior.
  • Loading branch information
itulau authored Dec 22, 2023
1 parent aad9c35 commit 19c2816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flixel/addons/display/FlxNestedSprite.hx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ class FlxNestedSprite extends FlxSprite

override public function draw():Void
{
super.draw();
if(_frame != null)
super.draw();

for (child in children)
{
Expand Down

0 comments on commit 19c2816

Please sign in to comment.