Added a replace undo command and used it for ungroup mesh

This commit is contained in:
Lars Brubaker 2017-11-20 11:19:22 -08:00
parent 003edb6c28
commit 65639abc75
10 changed files with 124 additions and 31 deletions

View file

@ -167,8 +167,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
// Create and push the undo operation
foreach (var item in loadedItems)
{
view3DWidget.AddUndoOperation(
new InsertCommand(view3DWidget, scene, item));
view3DWidget.AddUndoOperation(new InsertCommand(scene, item));
}
if (scene.SelectedItem == this