Cleanup code in #1367 and fix api compatibility, revert joint changes

This commit is contained in:
Wojtek Figat
2023-09-28 13:10:58 +02:00
parent 3b94792f2e
commit d71c171412
9 changed files with 48 additions and 17 deletions

View File

@@ -1221,7 +1221,7 @@ bool Prefab::SyncChangesInternal(PrefabInstancesData& prefabInstancesData)
{
ScopeLock lock(Locker);
_isCreatingDefaultInstance = true;
_defaultInstance = PrefabManager::SpawnPrefab(this,Transform::Identity, nullptr, &ObjectsCache, true);
_defaultInstance = PrefabManager::SpawnPrefab(this, Transform::Identity, nullptr, &ObjectsCache, true);
_isCreatingDefaultInstance = false;
}