From 5845ef8a46e85e01ad9e9de1d1944de0d5e69970 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 18 Jan 2018 09:31:25 +0300 Subject: [PATCH] #2309 Possibility to hide faces --- src/ModuleBase/ModuleBase_ResultPrs.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } -- 2.30.2