From 0b2bc8c3579282aa331867fa79e41c846d9838d4 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 22 Apr 2015 17:06:07 +0300 Subject: [PATCH] Issue #485: Avoid selection of shapes in case of custom selection modes --- src/ModuleBase/ModuleBase_ResultPrs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index eb022a2bf..2f85e9a99 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -64,6 +64,10 @@ void ModuleBase_ResultPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t void ModuleBase_ResultPrs::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection, const Standard_Integer aMode) { + if (aMode > TopAbs_SHAPE) + // In order to avoid using custom selection modes + return; + if (myIsSketchMode) { if (aMode == TopAbs_FACE) { BRep_Builder aBuilder; -- 2.39.2