From 133c519ea3c5d01625cd8345f52bcdd5594cebdf Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 15 Dec 2011 17:12:45 +0000 Subject: [PATCH] 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 --- src/Gui/View3DPy.cpp | 4 ++++ src/Mod/Part/Gui/TaskShapeBuilder.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Gui/View3DPy.cpp b/src/Gui/View3DPy.cpp index 434b22574..9ef5e9ccb 100644 --- a/src/Gui/View3DPy.cpp +++ b/src/Gui/View3DPy.cpp @@ -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) { diff --git a/src/Mod/Part/Gui/TaskShapeBuilder.cpp b/src/Mod/Part/Gui/TaskShapeBuilder.cpp index a3c2f3bfa..d7d2dbacf 100644 --- a/src/Mod/Part/Gui/TaskShapeBuilder.cpp +++ b/src/Mod/Part/Gui/TaskShapeBuilder.cpp @@ -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);