Fix crash when cloth sim is still active
This commit is contained in:
@@ -1180,6 +1180,8 @@ void ScenePhysX::PreSimulateCloth(int32 i)
|
||||
PROFILE_MEM(PhysicsCloth);
|
||||
auto clothPhysX = ClothsList[i];
|
||||
auto& clothSettings = Cloths[clothPhysX];
|
||||
if (!clothSettings.Actor)
|
||||
return;
|
||||
|
||||
if (clothSettings.Actor->OnPreUpdate())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user