loadmodel fix: code already relied on initial scene update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user