diff --git a/Source/Engine/Physics/Actors/Cloth.cpp b/Source/Engine/Physics/Actors/Cloth.cpp index ec6dd4ec4..7c180d98d 100644 --- a/Source/Engine/Physics/Actors/Cloth.cpp +++ b/Source/Engine/Physics/Actors/Cloth.cpp @@ -444,8 +444,8 @@ void Cloth::EndPlay() void Cloth::OnEnable() { -#if USE_EDITOR GetSceneRendering()->AddActor(this, _sceneRenderingKey); +#if USE_EDITOR GetSceneRendering()->AddPhysicsDebug(this); #endif #if WITH_CLOTH @@ -466,8 +466,8 @@ void Cloth::OnDisable() #endif #if USE_EDITOR GetSceneRendering()->RemovePhysicsDebug(this); - GetSceneRendering()->RemoveActor(this, _sceneRenderingKey); #endif + GetSceneRendering()->RemoveActor(this, _sceneRenderingKey); } void Cloth::OnDeleteObject()