浏览代码

Making scriptcanvas files rebuild (#7592)

The version of Lua has updated - script canvas needs to rebuild
all of the scriptcanvas files with the new lua version.

This adds the lua version into the fingerprint of all scriptcanvas jobs
which will cause them to rebuild next time you start Asset Processor.

Signed-off-by: lawsonamzn <[email protected]>
Nicholas Lawson 3 年之前
父节点
当前提交
d55c83d0d1
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Gems/ScriptCanvas/Code/Builder/ScriptCanvasBuilderWorker.cpp

+ 4 - 1
Gems/ScriptCanvas/Code/Builder/ScriptCanvasBuilderWorker.cpp

@@ -167,7 +167,10 @@ namespace ScriptCanvasBuilder
         {
             // compute it the first time
             const AZStd::string runtimeAssetTypeId = azrtti_typeid<ScriptCanvas::RuntimeAsset>().ToString<AZStd::string>();
-            m_fingerprintString = AZStd::string::format("%i%s", GetVersionNumber(), runtimeAssetTypeId.c_str());
+            m_fingerprintString = AZStd::string::format("%s%i%s", 
+                AZ::ScriptDataContext::GetInterpreterVersion(), // this is the version of LUA - if it changes, we need to rebuild
+                GetVersionNumber(), 
+                runtimeAssetTypeId.c_str());
         }
         return m_fingerprintString.c_str();
     }