Skip to content

Commit

Permalink
add clipRect changes from pr HaxeFlixel#3363
Browse files Browse the repository at this point in the history
  • Loading branch information
swordcube authored Feb 11, 2025
1 parent 6173644 commit ea30dde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flixel/FlxSprite.hx
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ class FlxSprite extends FlxObject
_frame = FlxDestroyUtil.destroy(_frame);
_frameGraphic = FlxDestroyUtil.destroy(_frameGraphic);

clipRect = FlxDestroyUtil.put(clipRect);
shader = null;
}

Expand Down Expand Up @@ -1604,7 +1605,7 @@ class FlxSprite extends FlxObject
function set_clipRect(rect:FlxRect):FlxRect
{
if (rect != null)
clipRect = rect.round();
clipRect = rect;
else
clipRect = null;

Expand Down

0 comments on commit ea30dde

Please sign in to comment.