Make sure to use the correct undo transform
Moving some code for clarity
This commit is contained in:
parent
2db2d65d44
commit
2daa96c95b
3 changed files with 5 additions and 2 deletions
|
|
@ -193,7 +193,7 @@
|
|||
<Compile Include="PartPreviewWindow\View3D\View3DCopyGroup.cs" />
|
||||
<Compile Include="PartPreviewWindow\View3D\View3DGroup.cs" />
|
||||
<Compile Include="PartPreviewWindow\View3D\View3DUngroup.cs" />
|
||||
<Compile Include="PartPreviewWindow\View3D\MirrorControls.cs" />
|
||||
<Compile Include="PartPreviewWindow\View3D\SideBar\MirrorControls.cs" />
|
||||
<Compile Include="PartPreviewWindow\View3D\View3DWidget.cs" />
|
||||
<Compile Include="PartPreviewWindow\ViewControls3D.cs" />
|
||||
<Compile Include="PartPreviewWindow\ViewControls2D.cs" />
|
||||
|
|
|
|||
|
|
@ -929,7 +929,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
public void AddUndoForSelectedMeshGroupTransform(Matrix4X4 undoTransform)
|
||||
{
|
||||
undoBuffer.Add(new TransformUndoCommand(this, SelectedMeshGroupIndex, transformOnMouseDown, SelectedMeshGroupTransform));
|
||||
if (undoTransform != SelectedMeshGroupTransform)
|
||||
{
|
||||
undoBuffer.Add(new TransformUndoCommand(this, SelectedMeshGroupIndex, undoTransform, SelectedMeshGroupTransform));
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnMouseUp(MouseEventArgs mouseEvent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue