This commit is contained in:
John Lewin 2018-05-10 07:29:44 -07:00
parent 77bf89369a
commit cb1882c709

View file

@ -202,9 +202,9 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
scene.SelectedItem = wrapper;
}
public static void ApplyAtBoundsCenter(this IObject3D object3DToApplayTo, Matrix4X4 transformToApply)
public static void ApplyAtBoundsCenter(this IObject3D object3DToApplyTo, Matrix4X4 transformToApply)
{
object3DToApplayTo.Matrix = ApplyAtCenter(object3DToApplayTo.GetAxisAlignedBoundingBox(Matrix4X4.Identity), object3DToApplayTo.Matrix, transformToApply);
object3DToApplyTo.Matrix = ApplyAtCenter(object3DToApplyTo.GetAxisAlignedBoundingBox(Matrix4X4.Identity), object3DToApplyTo.Matrix, transformToApply);
}
public static Matrix4X4 ApplyAtCenter(AxisAlignedBoundingBox boundsToApplyTo, Matrix4X4 currentTransform, Matrix4X4 transformToApply)