From d55c83d0d1a89d8a2853ca0b6420bd910d38a23d Mon Sep 17 00:00:00 2001 From: Nicholas Lawson <70027408+lawsonamzn@users.noreply.github.com> Date: Fri, 11 Feb 2022 14:20:04 -0800 Subject: [PATCH] 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 <70027408+lawsonamzn@users.noreply.github.com> --- Gems/ScriptCanvas/Code/Builder/ScriptCanvasBuilderWorker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gems/ScriptCanvas/Code/Builder/ScriptCanvasBuilderWorker.cpp b/Gems/ScriptCanvas/Code/Builder/ScriptCanvasBuilderWorker.cpp index 2f44dfe090..1dad5f1c44 100644 --- a/Gems/ScriptCanvas/Code/Builder/ScriptCanvasBuilderWorker.cpp +++ b/Gems/ScriptCanvas/Code/Builder/ScriptCanvasBuilderWorker.cpp @@ -167,7 +167,10 @@ namespace ScriptCanvasBuilder { // compute it the first time const AZStd::string runtimeAssetTypeId = azrtti_typeid().ToString(); - 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(); }