add missing disconnect SimulatedBodyBus to ragdoll destroy (#1404)

This commit is contained in:
amzn-sean
2021-06-18 12:29:53 +01:00
committed by GitHub
parent 79e510c738
commit ed186aff18
@@ -407,6 +407,7 @@ namespace PhysX
AzFramework::RagdollPhysicsRequestBus::Handler::BusDisconnect();
AzFramework::RagdollPhysicsNotificationBus::Event(
GetEntityId(), &AzFramework::RagdollPhysicsNotifications::OnRagdollDeactivated);
AzPhysics::SimulatedBodyComponentRequestsBus::Handler::BusDisconnect();
if (auto* sceneInterface = AZ::Interface<AzPhysics::SceneInterface>::Get())
{