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>
This commit is contained in:
Nicholas Lawson
2022-02-11 14:20:04 -08:00
committed by GitHub
parent b334b1ad98
commit d55c83d0d1
@@ -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();
}