+ fix command Part_ReverseShape
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5158 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
978392f78a
commit
2a14ddde2d
|
@ -673,7 +673,7 @@ void CmdPartReverseShape::activated(int iMsg)
|
||||||
const TopoDS_Shape& shape = static_cast<Part::Feature*>(*it)->Shape.getValue();
|
const TopoDS_Shape& shape = static_cast<Part::Feature*>(*it)->Shape.getValue();
|
||||||
if (!shape.IsNull()) {
|
if (!shape.IsNull()) {
|
||||||
QString str = QString::fromAscii(
|
QString str = QString::fromAscii(
|
||||||
"__s__=App.ActiveDocument.%1.Shape\n"
|
"__s__=App.ActiveDocument.%1.Shape.copy()\n"
|
||||||
"__s__.reverse()\n"
|
"__s__.reverse()\n"
|
||||||
"__o__=App.ActiveDocument.addObject(\"Part::Feature\",\"%1_rev\")\n"
|
"__o__=App.ActiveDocument.addObject(\"Part::Feature\",\"%1_rev\")\n"
|
||||||
"__o__.Label=\"%2 (Rev)\"\n"
|
"__o__.Label=\"%2 (Rev)\"\n"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user