Fixed ragdoll panel being available in Animation Editor when PhysX gem is enabled. (#3985)

Following the same approach as cloth plugin, which is to ask if the system component of the gem is available (in this case PhysX::SystemComponent).

Fixes #2540

Signed-off-by: moraaar moraaar@amazon.com
This commit is contained in:
moraaar
2021-09-09 09:48:32 +01:00
committed by GitHub
parent 05644a54a5
commit c86a1427a0
8 changed files with 36 additions and 18 deletions
@@ -41,6 +41,7 @@ namespace EMotionFX
AZ::SerializeContext* serializeContext = nullptr;
AZ::ComponentApplicationBus::BroadcastResult(serializeContext, &AZ::ComponentApplicationBus::Events::GetSerializeContext);
Physics::MockPhysicsSystem::Reflect(serializeContext); // Required by Ragdoll plugin to fake PhysX Gem is available
D6JointLimitConfiguration::Reflect(serializeContext);
SetupPluginWindows();