+ 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())
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
from math import cos, sin, pi, acos, asin, atan, sqrt
|
||||
|
||||
import FreeCAD, FreeCADGui, Part
|
||||
import FreeCAD, Part
|
||||
from FreeCAD import Base, Console
|
||||
import involute
|
||||
reload(involute)
|
||||
|
||||
Reference in New Issue
Block a user