The addition of elements to map is put under correct condition that element overlaps with selection volume
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)