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:
wmayer
2011-12-15 17:12:45 +00:00
parent 3b5c2c951f
commit 133c519ea3
2 changed files with 6 additions and 2 deletions

View File

@@ -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);