Working on new 2D primitives and operations
This commit is contained in:
parent
2bb944ba6f
commit
818a7fb8d7
13 changed files with 576 additions and 52 deletions
|
|
@ -115,10 +115,15 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
}
|
||||
|
||||
public override void Flatten(UndoBuffer undoBuffer)
|
||||
{
|
||||
Flatten(undoBuffer, null);
|
||||
}
|
||||
|
||||
protected void Flatten(UndoBuffer undoBuffer, IEnumerable<IObject3D> extraItems)
|
||||
{
|
||||
using (RebuildLock())
|
||||
{
|
||||
List<IObject3D> newChildren = new List<IObject3D>();
|
||||
var newChildren = new List<IObject3D>();
|
||||
// push our matrix into a copy of our children
|
||||
foreach (var child in this.Children)
|
||||
{
|
||||
|
|
@ -210,7 +215,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
{
|
||||
using (RebuildLock())
|
||||
{
|
||||
List<IObject3D> newChildren = new List<IObject3D>();
|
||||
var newChildren = new List<IObject3D>();
|
||||
// push our matrix into a copy of our children
|
||||
foreach (var child in this.SourceContainer.Children)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue