From 3e35a6a7afcf08a411e843bf2d3d6377684abe56 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 11 Sep 2023 22:55:03 +0200 Subject: [PATCH] Fix cloth sim due to culling bug in cooked game --- Source/Engine/Physics/Actors/Cloth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()