Skip to content

Commit

Permalink
remove more refs to cameras
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Mar 9, 2024
1 parent a0ebd28 commit df7e37b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions flixel/FlxStrip.hx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class FlxStrip extends FlxSprite
if (alpha == 0 || graphic == null || vertices == null)
return;

final cameras = getCamerasLegacy();
for (camera in cameras)
{
if (!camera.visible || !camera.exists)
Expand Down
3 changes: 2 additions & 1 deletion flixel/text/FlxBitmapText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ class FlxBitmapText extends FlxSprite
{
clippedFrameRect = FlxRect.get(0, 0, frameWidth, frameHeight);
}


final cameras = getCamerasLegacy();
for (camera in cameras)
{
if (!camera.visible || !camera.exists || !isOnScreen(camera))
Expand Down

0 comments on commit df7e37b

Please sign in to comment.