Make generate support be undoable
This commit is contained in:
parent
fa1637e9bf
commit
e0fde8ede7
1 changed files with 2 additions and 4 deletions
|
|
@ -35,6 +35,7 @@ using System.Threading.Tasks;
|
|||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.Image;
|
||||
using MatterHackers.DataConverters3D;
|
||||
using MatterHackers.MatterControl.PartPreviewWindow;
|
||||
using MatterHackers.PolygonMesh;
|
||||
using MatterHackers.RayTracer;
|
||||
using MatterHackers.VectorMath;
|
||||
|
|
@ -358,10 +359,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
}
|
||||
}
|
||||
|
||||
scene.Children.Modify(list =>
|
||||
{
|
||||
list.AddRange(supportColumnsToAdd.Children);
|
||||
});
|
||||
scene.UndoBuffer.AddAndDo(new InsertCommand(scene, supportColumnsToAdd.Children));
|
||||
}
|
||||
|
||||
private Dictionary<(int x, int y), List<(double z, bool bottom)>> DetectRequiredSupportByTracing(RectangleDouble gridBounds, IEnumerable<IObject3D> supportCandidates)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue