Fing align to return the object when switching to none
on an axis
This commit is contained in:
parent
7689aceed2
commit
9f8064694b
3 changed files with 5 additions and 5 deletions
|
|
@ -362,7 +362,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
if (XAlign == Align.None)
|
||||
{
|
||||
// make sure it is where it started
|
||||
AlignAxis(0, Align.Min, currentChildrenBounds[i].minXYZ.X, 0, child);
|
||||
AlignAxis(0, Align.Min, OriginalChildrenBounds[i].minXYZ.X, 0, child);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -380,7 +380,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
}
|
||||
if (YAlign == Align.None)
|
||||
{
|
||||
AlignAxis(1, Align.Min, currentChildrenBounds[i].minXYZ.Y, 0, child);
|
||||
AlignAxis(1, Align.Min, OriginalChildrenBounds[i].minXYZ.Y, 0, child);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -398,7 +398,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
}
|
||||
if (ZAlign == Align.None)
|
||||
{
|
||||
AlignAxis(2, Align.Min, currentChildrenBounds[i].minXYZ.Z, 0, child);
|
||||
AlignAxis(2, Align.Min, OriginalChildrenBounds[i].minXYZ.Z, 0, child);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit ffe82cae64f2934c5d0f502639e407a1d116cd64
|
||||
Subproject commit c84c9e33fd251e576e03a726fb6814b611b1ae5c
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit c33889bd45241541e0f147db32db335bdb73c996
|
||||
Subproject commit 79053de70fe6950814b3fa61585d62fbb912e35d
|
||||
Loading…
Add table
Add a link
Reference in a new issue