Skip to content

Commit

Permalink
Not really fixing the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 authored Nov 15, 2023
1 parent fa2df68 commit 604a789
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flixel/addons/transition/Transition.hx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ class Transition extends FlxSubState
_effectCamera.bgColor.alpha = 0;

_effect = createEffect(data);
_effect.scrollFactor.set(0, 0);
_effect.scrollFactor.set();
_effect.cameras = [_effectCamera];
add(_effect);

cameras = [_effectCamera];
}

public override function destroy():Void
Expand All @@ -54,9 +53,10 @@ class Transition extends FlxSubState

if (_effectCamera != null)
{
FlxG.cameras.remove(_effectCamera, true);
if (FlxG.cameras.list.contains(_effectCamera))
FlxG.cameras.remove(_effectCamera, false);

_effectCamera = null;
_effectCamera = FlxDestroyUtil.destroy(_effectCamera);
}
}

Expand Down

0 comments on commit 604a789

Please sign in to comment.