update comment and error message
Signed-off-by: Guthrie Adams <guthadam@amazon.com>
This commit is contained in:
@@ -137,7 +137,10 @@ namespace AZ
|
||||
}
|
||||
else if (!m_luaSourceFile.empty())
|
||||
{
|
||||
auto loadOutcome = RPI::AssetUtils::LoadAsset<ScriptAsset>(materialTypeSourceFilePath, m_luaSourceFile, ScriptAsset::CompiledAssetSubId);
|
||||
// The sub ID for script assets must be explicit.
|
||||
// LUA source files output a compiled as well as an uncompiled asset, sub Ids of 1 and 2.
|
||||
auto loadOutcome =
|
||||
RPI::AssetUtils::LoadAsset<ScriptAsset>(materialTypeSourceFilePath, m_luaSourceFile, ScriptAsset::CompiledAssetSubId);
|
||||
if (!loadOutcome)
|
||||
{
|
||||
AZ_Error("LuaMaterialFunctorSourceData", false, "Could not load script file '%s'", m_luaSourceFile.c_str());
|
||||
|
||||
@@ -250,7 +250,7 @@ namespace AZ
|
||||
const auto parentTypeAssetId = AssetUtils::MakeAssetId(parentSourceAbsPath, parentSourceData.m_materialType, 0);
|
||||
if (!parentTypeAssetId)
|
||||
{
|
||||
AZ_Error("MaterialSourceData", false, "Parent material asset ID isn't valid: '%s'.", parentSourceAbsPath.c_str());
|
||||
AZ_Error("MaterialSourceData", false, "Parent material asset ID wasn't found: '%s'.", parentSourceAbsPath.c_str());
|
||||
return Failure();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user