First version of the slice-to-prefab converter

It converts .slice and .ly files to .prefab files, but doesn't handle nested or complicated slices correctly yet.
This commit is contained in:
Mike Balfour
2021-05-14 11:18:15 -05:00
committed by GitHub
parent 5cc0cc9ee7
commit 77278a0329
9 changed files with 358 additions and 15 deletions
@@ -117,7 +117,7 @@ namespace AZ
}
return true;
};
if (!Utilities::InspectSerializedFile(filePath, convertSettings.m_serializeContext, callback))
if (!Utilities::InspectSerializedFile(filePath.c_str(), convertSettings.m_serializeContext, callback))
{
AZ_Warning("Convert", false, "Failed to load '%s'. File may not contain an object stream.", filePath.c_str());
result = false;
@@ -287,7 +287,7 @@ namespace AZ
}
return true;
};
if (!Utilities::InspectSerializedFile(filePath, convertSettings.m_serializeContext, callback))
if (!Utilities::InspectSerializedFile(filePath.c_str(), convertSettings.m_serializeContext, callback))
{
AZ_Warning("Convert", false, "Failed to load '%s'. File may not contain an object stream.", filePath.c_str());
result = false;