This commit is contained in:
DCFApixels 2025-05-15 13:10:54 +08:00
parent 7f80f2564c
commit 71f1328a59

View File

@ -231,8 +231,16 @@ namespace DCFApixels.DragonECS.Unity.Editors.X
{ {
if (_runtimeComponentsDepth == RuntimeComponentsDepthRoot) if (_runtimeComponentsDepth == RuntimeComponentsDepthRoot)
{ {
try
{
_runtimeComponentsDepth = 0;
_drawers[0].DrawWorldComponents_Internal(world); _drawers[0].DrawWorldComponents_Internal(world);
} }
finally
{
_runtimeComponentsDepth = RuntimeComponentsDepthRoot;
}
}
} }
private void DrawWorldComponents_Internal(EcsWorld world) private void DrawWorldComponents_Internal(EcsWorld world)
{ {