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