Simplify - use overload with default identity matrix
This commit is contained in:
parent
025fcb883a
commit
3717d284a7
17 changed files with 58 additions and 57 deletions
|
|
@ -307,7 +307,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
// Reposition first item to bed center
|
||||
if (scene.Children.Count == 0)
|
||||
{
|
||||
var aabb = newItem.GetAxisAlignedBoundingBox(Matrix4X4.Identity);
|
||||
var aabb = newItem.GetAxisAlignedBoundingBox();
|
||||
var center = aabb.Center;
|
||||
|
||||
newItem.Matrix *= Matrix4X4.CreateTranslation(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue