0000539: Write message if off-screen rendering failed
+ use removeSplitter() in shape builder git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5308 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
3b5c2c951f
commit
133c519ea3
|
@ -539,6 +539,10 @@ Py::Object View3DInventorPy::saveImage(const Py::Tuple& args)
|
|||
return Py::None();
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
Base::Console().Log("Try disabling the use of pbuffers, set the environment variables\n"
|
||||
"COIN_GLXGLUE_NO_PBUFFERS=1\n"
|
||||
"COIN_GLXGLUE_NO_GLX13_PBUFFERS=1\n"
|
||||
"and re-run the application.\n");
|
||||
throw Py::Exception(e.what());
|
||||
}
|
||||
catch (const std::exception& e) {
|
||||
|
|
|
@ -283,7 +283,7 @@ void ShapeBuilderWidget::createShell()
|
|||
cmd = QString::fromAscii(
|
||||
"_=Part.Shell(%1)\n"
|
||||
"if _.isNull(): raise Exception('Failed to create shell')\n"
|
||||
"App.ActiveDocument.addObject('Part::Feature','Shell').Shape=_\n"
|
||||
"App.ActiveDocument.addObject('Part::Feature','Shell').Shape=_.removeSplitter()\n"
|
||||
"del _\n"
|
||||
).arg(list);
|
||||
|
||||
|
@ -317,7 +317,7 @@ void ShapeBuilderWidget::createSolid()
|
|||
"if shell.ShapeType != 'Shell': raise Exception('Part object is not a shell')\n"
|
||||
"_=Part.Solid(shell)\n"
|
||||
"if _.isNull(): raise Exception('Failed to create solid')\n"
|
||||
"App.ActiveDocument.addObject('Part::Feature','Solid').Shape=_\n"
|
||||
"App.ActiveDocument.addObject('Part::Feature','Solid').Shape=_.removeSplitter()\n"
|
||||
"del _\n"
|
||||
).arg(line);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user