Fixed group in consideration of new selection code

This commit is contained in:
Lars Brubaker 2017-08-24 16:13:00 -07:00
parent 437f26cd0c
commit c3ce0aa34c
2 changed files with 5 additions and 26 deletions

View file

@ -129,10 +129,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
// Create and perform the delete operation
var operation = new GroupCommand(view3DWidget, Scene.SelectedItem);
operation.Do();
// Store the operation for undo/redo
view3DWidget.Scene.UndoBuffer.Add(operation);
view3DWidget.Scene.UndoBuffer.AddAndDo(operation);
}
});