+ fix unit tests
This commit is contained in:
parent
bb6a66bd82
commit
fe8be472a9
|
@ -1484,11 +1484,18 @@ static void init_resources()
|
|||
|
||||
void Application::initApplication(void)
|
||||
{
|
||||
static bool init = false;
|
||||
if (init) {
|
||||
Base::Console().Error("Tried to run Gui::Application::initApplication() twice!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
initTypes();
|
||||
new Base::ScriptProducer( "FreeCADGuiInit", FreeCADGuiInit );
|
||||
init_resources();
|
||||
old_qtmsg_handler = qInstallMsgHandler(messageHandler);
|
||||
init = true;
|
||||
}
|
||||
catch (...) {
|
||||
// force to flush the log
|
||||
|
|
|
@ -240,7 +240,7 @@ int main( int argc, char ** argv )
|
|||
exit(0);
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
Base::Console().Error("%s\n", e.what());
|
||||
e.ReportException();
|
||||
}
|
||||
catch (...) {
|
||||
Base::Console().Error("Application unexpectedly terminated\n");
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user