Merge branch 'fix-default-prefab-instance' of https://github.com/Menotdan/FlaxEngine into Menotdan-fix-default-prefab-instance

This commit is contained in:
Wojtek Figat
2023-12-11 22:06:14 +01:00

View File

@@ -76,7 +76,7 @@ Actor* Prefab::GetDefaultInstance()
_isCreatingDefaultInstance = true;
// Instantiate objects from prefab (default spawning logic)
_defaultInstance = PrefabManager::SpawnPrefab(this, Transform::Identity, nullptr, &ObjectsCache);
_defaultInstance = PrefabManager::SpawnPrefab(this, Transform(Vector3::Minimum), nullptr, &ObjectsCache);
_isCreatingDefaultInstance = false;
return _defaultInstance;