material editor loads source data
Signed-off-by: Guthrie Adams <guthadam@amazon.com>
This commit is contained in:
@@ -722,7 +722,7 @@ namespace MaterialEditor
|
||||
// we can create the asset dynamically from the source data.
|
||||
// Long term, the material document should not be concerned with assets at all. The viewport window should be the
|
||||
// only thing concerned with assets or instances.
|
||||
auto createResult = m_materialSourceData.CreateMaterialAsset(Uuid::CreateRandom(), m_absolutePath, true);
|
||||
auto createResult = m_materialSourceData.CreateMaterialAssetFromSourceData(Uuid::CreateRandom(), m_absolutePath, true);
|
||||
if (!createResult)
|
||||
{
|
||||
AZ_Error("MaterialDocument", false, "Material asset could not be created from source data: '%s'.", m_absolutePath.c_str());
|
||||
|
||||
Reference in New Issue
Block a user