Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Draft: trimex extrusions now sets the solid property of the extruded …
…object to True
  • Loading branch information
yorikvanhavre committed Nov 10, 2014
1 parent 039cacb commit 04c1530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Mod/Draft/Draft.py
Expand Up @@ -1114,13 +1114,14 @@ def makeVisGroup(group=None,name="VisGroup"):
group.addObject(obj)
return obj

def extrude(obj,vector):
def extrude(obj,vector,solid=False):
'''makeExtrusion(object,vector): extrudes the given object
in the direction given by the vector. The original object
gets hidden.'''
newobj = FreeCAD.ActiveDocument.addObject("Part::Extrusion","Extrusion")
newobj.Base = obj
newobj.Dir = vector
newobj.Solid = solid
obj.ViewObject.Visibility = False
formatObject(newobj,obj)
FreeCAD.ActiveDocument.recompute()
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Draft/DraftTools.py
Expand Up @@ -2885,7 +2885,7 @@ def trimObject(self):
delta = self.extrude(self.shift,real=True)
#print("delta",delta)
self.doc.openTransaction("Extrude")
obj = Draft.extrude(self.obj,delta)
obj = Draft.extrude(self.obj,delta,solid=True)
self.doc.commitTransaction()
self.obj = obj
else:
Expand Down

0 comments on commit 04c1530

Please sign in to comment.