Simplify - use overload with default identity matrix

This commit is contained in:
John Lewin 2019-05-21 07:27:58 -07:00
parent 025fcb883a
commit 3717d284a7
17 changed files with 58 additions and 57 deletions

View file

@ -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(