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>
monroegm-disable-blank-issue-2
Nicholas Lawson 4 years ago committed by GitHub
parent b334b1ad98
commit d55c83d0d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();
}

Loading…
Cancel
Save