Added passing UndoBuffer to rebuildable

This commit is contained in:
Lars Brubaker 2018-03-08 17:23:03 -08:00
parent 4e41fa6694
commit 9cc6d5f469
43 changed files with 208 additions and 99 deletions

View file

@ -29,6 +29,7 @@ either expressed or implied, of the FreeBSD Project.
using System;
using System.ComponentModel;
using MatterHackers.Agg.UI;
using MatterHackers.Agg.VertexSource;
using MatterHackers.DataConverters3D;
using MatterHackers.VectorMath;
@ -47,7 +48,7 @@ namespace MatterHackers.MatterControl.DesignTools
{
var item = new SphereObject3D();
item.Rebuild();
item.Rebuild(null);
return item;
}
@ -55,7 +56,7 @@ namespace MatterHackers.MatterControl.DesignTools
[DisplayName("Sides")]
public int Sides { get; set; } = 30;
public void Rebuild()
public void Rebuild(UndoBuffer undoBuffer)
{
var aabb = this.GetAxisAlignedBoundingBox();