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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user