Browse Source

Compile out RemoteTools registration in RELEASE builds

Signed-off-by: puvvadar <[email protected]>
puvvadar 3 years ago
parent
commit
7fe009c835
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Gems/RemoteTools/Code/Source/RemoteToolsSystemComponent.cpp

+ 4 - 0
Gems/RemoteTools/Code/Source/RemoteToolsSystemComponent.cpp

@@ -69,18 +69,22 @@ namespace RemoteTools
 
     RemoteToolsSystemComponent::RemoteToolsSystemComponent()
     {
+#if !defined(_RELEASE)
         if (AzFramework::RemoteToolsInterface::Get() == nullptr)
         {
             AzFramework::RemoteToolsInterface::Register(this);
         }
+#endif
     }
 
     RemoteToolsSystemComponent::~RemoteToolsSystemComponent()
     {
+#if !defined(_RELEASE)
         if (AzFramework::RemoteToolsInterface::Get() == this)
         {
             AzFramework::RemoteToolsInterface::Unregister(this);
         }
+#endif
     }
 
     void RemoteToolsSystemComponent::Init()