loadmodel fix: code already relied on initial scene update

This commit is contained in:
Turánszki János
2021-12-22 12:47:17 +01:00
parent 4d73689877
commit 6cc5388e68
-6
View File
@@ -3916,12 +3916,6 @@ namespace wi::scene
// Serialize it from file:
scene.Serialize(archive);
if (!attached && XMMatrixIsIdentity(transformMatrix))
{
// fast path: no attaching, no tansformation, scene is loaded as-is
return INVALID_ENTITY;
}
// First, create new root:
Entity root = CreateEntity();
scene.transforms.Create(root);