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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user