From: vsv Date: Wed, 22 Apr 2015 14:06:07 +0000 (+0300) Subject: Issue #485: Avoid selection of shapes in case of custom selection modes X-Git-Tag: V_1.2.0~186 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0b2bc8c3579282aa331867fa79e41c846d9838d4;p=modules%2Fshaper.git Issue #485: Avoid selection of shapes in case of custom selection modes --- 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;