+ fix unit tests
This commit is contained in:
@@ -39,7 +39,8 @@ def makeInvoluteGear(name):
|
||||
'''makeInvoluteGear(name): makes an InvoluteGear'''
|
||||
obj = FreeCAD.ActiveDocument.addObject("Part::Part2DObjectPython",name)
|
||||
_InvoluteGear(obj)
|
||||
_ViewProviderInvoluteGear(obj.ViewObject)
|
||||
if FreeCAD.GuiUp:
|
||||
_ViewProviderInvoluteGear(obj.ViewObject)
|
||||
#FreeCAD.ActiveDocument.recompute()
|
||||
return obj
|
||||
|
||||
@@ -243,5 +244,5 @@ class _InvoluteGearTaskPanel:
|
||||
FreeCADGui.ActiveDocument.resetEdit()
|
||||
|
||||
|
||||
|
||||
FreeCADGui.addCommand('PartDesign_InvoluteGear',_CommandInvoluteGear())
|
||||
if FreeCAD.GuiUp:
|
||||
FreeCADGui.addCommand('PartDesign_InvoluteGear',_CommandInvoluteGear())
|
||||
|
||||
Reference in New Issue
Block a user