Skip to content

Commit

Permalink
more cam fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Apr 17, 2024
1 parent c17dd67 commit a215a5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flixel/group/FlxSpriteGroup.hx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class FlxTypedSpriteGroup<T:FlxSprite> extends FlxSprite
sprite.x -= x;
sprite.y -= y;
// alpha
sprite._cameras = null;
sprite.cameras = null;
return group.remove(sprite, splice);
}

Expand Down Expand Up @@ -1066,7 +1066,7 @@ class FlxTypedSpriteGroup<T:FlxSprite> extends FlxSprite
Sprite.camera = Camera;

inline function camerasTransform(Sprite:FlxSprite, Cameras:Array<FlxCamera>)
Sprite._cameras = Cameras;
Sprite.cameras = Cameras;

inline function offsetTransform(Sprite:FlxSprite, Offset:FlxPoint)
Sprite.offset.copyFrom(Offset);
Expand Down
2 changes: 1 addition & 1 deletion flixel/ui/FlxButton.hx
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class FlxTypedButton<T:FlxSprite> extends FlxSprite implements IFlxInput

if (_spriteLabel != null && _spriteLabel.visible)
{
_spriteLabel._cameras = _cameras;
_spriteLabel.cameras = _cameras;
_spriteLabel.draw();
}
}
Expand Down

0 comments on commit a215a5b

Please sign in to comment.