[go: nahoru, domu]

Skip to content

Commit

Permalink
enabling PartDesign features
Browse files Browse the repository at this point in the history
  • Loading branch information
easyw committed Sep 25, 2018
1 parent b862225 commit d531cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DefeaturingCMD.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def IsActive(self):
OCCMV = Part.OCC_VERSION.split('.')[0]
OCCmV = Part.OCC_VERSION.split('.')[1]
if (int(OCCMV)>= 7) and (int(OCCmV)>= 3):
return FreeCADGui.Selection.countObjectsOfType('Part::Feature') > 0
return FreeCADGui.Selection.countObjectsOfType('Part::Feature') + FreeCADGui.Selection.countObjectsOfType('PartDesign::Feature') > 0
else:
return False

Expand Down

0 comments on commit d531cf0

Please sign in to comment.