Added an IsObject check for nested instance DOM during link creation that happens during prefab loading

This commit is contained in:
srikappa
2021-04-28 12:14:55 -07:00
parent 26604fd66c
commit 6947e8fe29
@@ -782,7 +782,7 @@ namespace AzToolsFramework
link.SetInstanceName(instanceName.data());
PrefabDomValue& instance = instanceIterator->value;
AZ_Assert(instance.IsObject(), "Nested instance DOM provided is not a valid JSON object.");
PrefabDomValueReference sourceTemplateName = PrefabDomUtils::FindPrefabDomValue(instance, PrefabDomUtils::SourceName);
AZ_Assert(sourceTemplateName, "Couldn't find source template name in the DOM of the nested instance while creating a link.");
AZ_Assert(