Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add FlxBasePath, extends base in FlxPath #3153

Merged
merged 16 commits into from
May 30, 2024
10 changes: 7 additions & 3 deletions flixel/FlxObject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1266,12 +1266,16 @@ class FlxObject extends FlxBasic
if (ignoreDrawDebug)
return;

final drawPath = path != null && !path.ignoreDrawDebug;

for (camera in getCamerasLegacy())
{
drawDebugOnCamera(camera);

if (path != null && !path.ignoreDrawDebug)
path.drawDebug();

if (drawPath)
{
path.drawDebugOnCamera(camera);
}
}
}

Expand Down
Loading
Loading