Skip to content

Commit d330fb5

Browse files
committed
Moved transform init out of native block and improved comment for clarity
1 parent f69f9da commit d330fb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/Sandbox.Engine/Systems/SceneSystem/SceneCustomObject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ public SceneCustomObject( SceneWorld sceneWorld )
2525
// Start off with infinite bounds so it will actually get rendered
2626
// if the user forgets/doesn't need bounds.
2727
native.SetBoundsInfinite();
28-
29-
// Transform must be set too
30-
Transform = Transform.Zero;
3128
}
29+
30+
// Initialize Transform so it will render (default Transform has scale 0)
31+
Transform = Transform.Zero;
3232
}
3333
}
3434

0 commit comments

Comments
 (0)