Fix preserving objects order in prefab instances on apply (based on the prefab)

Fixes #346
This commit is contained in:
Wojtek Figat
2021-03-17 00:24:29 +01:00
parent 691df4cb80
commit a479f1daf6
3 changed files with 37 additions and 0 deletions

View File

@@ -100,6 +100,8 @@ void ChangeIds(rapidjson_flax::Value& obj, rapidjson_flax::Document& document, c
void JsonTools::ChangeIds(Document& doc, const Dictionary<Guid, Guid>& mapping)
{
if (mapping.IsEmpty())
return;
::ChangeIds(doc, doc, mapping);
}