From aa0b54838cdbc9e90397bf9d9ae3faba93c2ab21 Mon Sep 17 00:00:00 2001 From: Ulugbek Adilbekov Date: Mon, 12 Apr 2021 14:16:01 +0100 Subject: [PATCH] Fix PhysXDebug and PhysXEditor loading order (#14) Co-authored-by: Ulugbek Adilbekov --- Gems/PhysXDebug/Code/Source/SystemComponent.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gems/PhysXDebug/Code/Source/SystemComponent.cpp b/Gems/PhysXDebug/Code/Source/SystemComponent.cpp index 53de88192d..0d26d1cbc0 100644 --- a/Gems/PhysXDebug/Code/Source/SystemComponent.cpp +++ b/Gems/PhysXDebug/Code/Source/SystemComponent.cpp @@ -213,6 +213,9 @@ namespace PhysXDebug void SystemComponent::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required) { required.push_back(AZ_CRC("PhysXService")); +#ifdef PHYSXDEBUG_GEM_EDITOR + required.push_back(AZ_CRC("PhysXEditorService")); +#endif // PHYSXDEBUG_GEM_EDITOR } void SystemComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent)