Merge branch 'master' of https://github.com/MatterHackers/MatterControl
This commit is contained in:
commit
62060e1f83
1 changed files with 5 additions and 4 deletions
|
|
@ -1431,11 +1431,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
if (SelectedMeshGroupIndex != -1
|
||||
&& MeshGroups.Count > 1)
|
||||
{
|
||||
undoBuffer.Add(new DeleteUndoCommand(this, SelectedMeshGroupIndex));
|
||||
int removingIndex = SelectedMeshGroupIndex;
|
||||
undoBuffer.Add(new DeleteUndoCommand(this, removingIndex));
|
||||
|
||||
MeshGroups.RemoveAt(SelectedMeshGroupIndex);
|
||||
MeshGroupExtraData.RemoveAt(SelectedMeshGroupIndex);
|
||||
MeshGroupTransforms.RemoveAt(SelectedMeshGroupIndex);
|
||||
MeshGroups.RemoveAt(removingIndex);
|
||||
MeshGroupExtraData.RemoveAt(removingIndex);
|
||||
MeshGroupTransforms.RemoveAt(removingIndex);
|
||||
this.SelectedMeshGroupIndex = -1;
|
||||
PartHasBeenChanged();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue