Skip to content

Commit

Permalink
MakeBoxPanel : remove box when rejected.
Browse files Browse the repository at this point in the history
  • Loading branch information
execuc committed Oct 28, 2016
1 parent 8676395 commit 93d3b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MakeBoxPanel.py
Expand Up @@ -84,6 +84,8 @@ def accept(self):
return True

def reject(self):
for part in self.actual_parts:
self.document.removeObject(part.Name)
return True

def create_new_parts(self, document, computed_parts):
Expand All @@ -101,8 +103,6 @@ def compute_parts(self):
parts_list = makebox.make_box(dimension_properties, top_properties, bottom_properties)
return parts_list

# Faire plutot un rendu dans le fenetre actuel, ne pas en creer une autre
#self.active_document != FreeCAD.ActiveDocument:
def preview(self):
first_preview = len(self.actual_parts) == 0

Expand Down

0 comments on commit 93d3b3e

Please sign in to comment.