Forráskód Böngészése

Fixed crash when closing Script Canvas

Signed-off-by: Chris Galvan <[email protected]>
Chris Galvan 1 éve
szülő
commit
60c8a37f96

+ 0 - 2
Gems/ScriptCanvas/Code/Include/ScriptCanvas/Debugger/Logger.cpp

@@ -34,9 +34,7 @@ namespace ScriptCanvas
 
         void Logger::ClearLog()
         {
-#if defined(SC_EXECUTION_TRACE_ENABLED) 
             m_logAsset.GetData().Clear();
-#endif
         }
 
         void Logger::ClearLogExecutionOverride()

+ 1 - 3
Gems/ScriptCanvas/Code/Include/ScriptCanvas/Debugger/Logger.h

@@ -68,8 +68,8 @@ namespace ScriptCanvas
             {
 #if defined(SC_EXECUTION_TRACE_ENABLED) 
                 SCRIPT_CANVAS_DEBUGGER_TRACE_CLIENT("Logging: %s", loggableEvent.ToString().data());
-                m_logAsset.GetData().m_events.emplace_back(loggableEvent.Duplicate());
 #endif
+                m_logAsset.GetData().m_events.emplace_back(loggableEvent.Duplicate());
             }
 
         private:
@@ -78,9 +78,7 @@ namespace ScriptCanvas
             bool m_logExecutionOverrideEnabled = false;
             bool m_logExecutionOverride = false;
 
-#if defined(SC_EXECUTION_TRACE_ENABLED) 
             ExecutionLogAsset m_logAsset;
-#endif
             ScriptCanvas::Debugger::Target m_target;
         };
     }