diff --git a/Source/Engine/Level/Actor.cpp b/Source/Engine/Level/Actor.cpp index 33d107579..20ec4cb7a 100644 --- a/Source/Engine/Level/Actor.cpp +++ b/Source/Engine/Level/Actor.cpp @@ -1248,12 +1248,6 @@ void Actor::OnDebugDraw() for (auto* script : Scripts) if (script->GetEnabled()) script->OnDebugDraw(); - - for (auto& child : Children) - { - if (child->GetIsActive()) - child->OnDebugDraw(); - } } void Actor::OnDebugDrawSelected() diff --git a/Source/Engine/Level/Actor.h b/Source/Engine/Level/Actor.h index 9f46bfa5e..00aeb17ab 100644 --- a/Source/Engine/Level/Actor.h +++ b/Source/Engine/Level/Actor.h @@ -665,12 +665,12 @@ public: #if USE_EDITOR /// - /// Draws debug shapes for the actor and all child actors. + /// Draws debug shapes for the actor and all child scripts. /// virtual void OnDebugDraw(); /// - /// Draws debug shapes for the selected actor and all child actors. + /// Draws debug shapes for the selected actor and all child scripts. /// virtual void OnDebugDrawSelected();