Move to bed center if empty bed

- Issue MatterHackers/MCCentral#4550
InsertNewItem leaves items in place when copied to part view
This commit is contained in:
John Lewin 2018-11-12 11:41:26 -08:00
parent dc4d249d0f
commit 1114e5ef81

View file

@ -314,8 +314,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
var center = aabb.Center;
newItem.Matrix *= Matrix4X4.CreateTranslation(
(sceneContext.BedCenter.X + center.X),
(sceneContext.BedCenter.Y + center.Y),
(sceneContext.BedCenter.X - center.X),
(sceneContext.BedCenter.Y - center.Y),
-aabb.minXYZ.Z);
}