TechDraw: fix face based projection direction detection

This commit is contained in:
Zheng, Lei
2019-08-12 08:27:15 +08:00
committed by wmayer
parent ecc857cdf1
commit afeaec3d0d

View File

@@ -248,7 +248,7 @@ std::pair<Base::Vector3d,Base::Vector3d> DrawGuiUtil::getProjDirFromFace(App::Do
projDir = d3Dirs.first;
rotVec = d3Dirs.second;
auto ts = Part::Feature::getShape(obj,faceName.c_str());
auto ts = Part::Feature::getShape(obj,faceName.c_str(),true);
if(ts.IsNull() || ts.ShapeType()!=TopAbs_FACE) {
Base::Console().Warning("getProjDirFromFace(%s) is not a Face\n",faceName.c_str());
return dirs;