Parcourir la source

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 il y a 3 ans
Parent
commit
d55c83d0d1
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  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();
     }