Activate OSD signals on Linux

This commit is contained in:
wmayer 2013-06-12 23:15:53 +02:00
parent 00b4fd364a
commit b36ffe63fd
2 changed files with 4 additions and 3 deletions

View File

@ -120,9 +120,6 @@ void ProjectionAlgos::execute(void)
brep_hlr->Add(Input);
try {
#if defined(__GNUC__) && defined (FC_OS_LINUX)
Base::SignalException se;
#endif
gp_Ax2 transform(gp_Pnt(0,0,0),gp_Dir(Direction.x,Direction.y,Direction.z));
HLRAlgo_Projector projector( transform );
brep_hlr->Projector(projector);

View File

@ -13,6 +13,7 @@
#ifndef _PreComp_
# include <Python.h>
# include <Interface_Static.hxx>
# include <OSD.hxx>
# include <sstream>
#endif
@ -101,6 +102,9 @@ void PartExport initPart()
App::GetApplication().addImportType("STEP with colors (*.step *.stp)","ImportGui");
App::GetApplication().addExportType("STEP with colors (*.step *.stp)","ImportGui");
#endif
#endif
#if defined(FC_OS_LINUX)
OSD::SetSignal();
#endif
PyObject* partModule = Py_InitModule3("Part", Part_methods, module_part_doc); /* mod name, table ptr */