From: nds Date: Thu, 18 Jan 2018 06:31:25 +0000 (+0300) Subject: #2309 Possibility to hide faces X-Git-Tag: V_3.0.0RC1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5845ef8a46e85e01ad9e9de1d1944de0d5e69970;p=modules%2Fshaper.git #2309 Possibility to hide faces --- diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index 8d2aeb755..fe20fa5da 100755 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -145,14 +145,11 @@ bool ModuleBase_ResultPrs::isSubShapeHidden(const TopoDS_Shape& theShape) if (theShape.IsNull() || theShape.ShapeType() != TopAbs_FACE) // only face shape can be hidden return false; - if (myHiddenSubShapes.Contains(theShape)) - return true; - // orientation of parameter shape(come from selection) may be wrong, check isEqual() to be sure for (NCollection_List::Iterator aShapeIt(myHiddenSubShapes); aShapeIt.More(); aShapeIt.Next()) { - if (theShape.IsEqual(aShapeIt.Value())) + if (theShape.IsSame(aShapeIt.Value())) return true; }