From: asl Date: Mon, 24 Sep 2018 08:00:18 +0000 (+0300) Subject: 0030156: Visualization, TKV3d - Triangles outside of selection volume are selected X-Git-Tag: V7_4_0_beta~389 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=f2eaecb217b2ca71f4295671ded36a3813c90360;p=occt-copy.git 0030156: Visualization, TKV3d - Triangles outside of selection volume are selected The addition of elements to map is put under correct condition that element overlaps with selection volume --- diff --git a/src/Select3D/Select3D_SensitivePrimitiveArray.cxx b/src/Select3D/Select3D_SensitivePrimitiveArray.cxx index f7dd11d194..fc0c6ce432 100644 --- a/src/Select3D/Select3D_SensitivePrimitiveArray.cxx +++ b/src/Select3D/Select3D_SensitivePrimitiveArray.cxx @@ -1059,11 +1059,11 @@ Standard_Boolean Select3D_SensitivePrimitiveArray::overlapsElement (SelectBasics myMinDepthElem = aPickResult.Depth(); } aResult = Standard_True; - } - if (!myDetectedElemMap.IsNull() - && theMgr.GetActiveSelectionType() != SelectBasics_SelectingVolumeManager::Point) - { - myDetectedElemMap->ChangeMap().Add (aTriIndex); + if (!myDetectedElemMap.IsNull() + && theMgr.GetActiveSelectionType() != SelectBasics_SelectingVolumeManager::Point) + { + myDetectedElemMap->ChangeMap().Add(aTriIndex); + } } } if (myToDetectNode)