SImplify editor code for actors debug shapes drawing

This commit is contained in:
Wojtek Figat
2025-07-11 23:00:53 +02:00
parent 3e82e550f3
commit 4af26a5516
4 changed files with 15 additions and 23 deletions

View File

@@ -643,14 +643,7 @@ namespace FlaxEditor.Viewport
if (selectedParents[i].IsActiveInHierarchy)
selectedParents[i].OnDebugDraw(_debugDrawData);
}
unsafe
{
fixed (IntPtr* actors = _debugDrawData.ActorsPtrs)
{
DebugDraw.DrawActors(new IntPtr(actors), _debugDrawData.ActorsCount, false);
}
}
_debugDrawData.DrawActors();
// Debug draw all actors in prefab and collect actors
var view = Task.View;