fixes 0003427: Measurement tool measures wrongly

This commit is contained in:
wmayer
2018-09-26 16:37:00 +02:00
parent 1c28e4b883
commit 1c646c9488

View File

@@ -91,9 +91,12 @@ bool PartGui::getShapeFromStrings(TopoDS_Shape &shapeOut, const std::string &doc
Part::Feature *feature = dynamic_cast<Part::Feature *>(objectPointer);
if (!feature)
return false;
shapeOut = feature->Shape.getValue();
Base::Placement placement = feature->globalPlacement();
Part::TopoShape topoShape = feature->Shape.getShape();
topoShape.setPlacement(placement);
shapeOut = topoShape.getShape();
if (sub.size() > 0)
shapeOut = feature->Shape.getShape().getSubShape(sub.c_str());
shapeOut = topoShape.getSubShape(sub.c_str());
if (shapeOut.IsNull())
return false;
return true;