HaxeFlixel / flixel-addons

Additional classes for HaxeFlixel
170 stars 139 forks source link

Fix FlxNestedSprite drawing default png by default #415

Closed itulau closed 10 months ago

itulau commented 10 months ago

FlxNestedSprite shows the Flixel default icon when there isn't an image nor graphic loaded which seems to be the default behavior of draw() inherited from FlxSprite. So every FlxNestedSprite that itself doesn't render anything but contains children will have a default icon shown by default.

This PR adresses this problem by guarding the call for drawing of the current FlxNestedSprite with a null check for _frame (the same variable that's used when checking for null when adding the default icon).

Solves #413

Geokureli commented 10 months ago

Thanks!