From: vsv Date: Tue, 2 Feb 2021 08:27:47 +0000 (+0300) Subject: bos #22744: Visualization problems. Make compsolid presentation to follow defined... X-Git-Tag: V9_7_0a1~53 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=196d25f712c34147d0183049790907167b653d1f;p=modules%2Fshaper.git bos #22744: Visualization problems. Make compsolid presentation to follow defined selection mode --- diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index 10f3d798b..447be6b7b 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -101,9 +101,11 @@ ModuleBase_ResultPrs::ModuleBase_ResultPrs(ResultPtr theResult) } Set(aShape); - // Activate individual repaintng if this is a part of compsolid - ResultBodyPtr aResOwner = ModelAPI_Tools::bodyOwner(myResult); - SetAutoHilight(aResOwner.get() == NULL); + // VSV: bos22744: The AutoHilight mode is swithced off because it produces different + // behaviour of selection for simple shape and compound. For example when selection mode + // is Vertex the shape is selected by vertex, but compound is selected by whole shape + //ResultBodyPtr aResOwner = ModelAPI_Tools::bodyOwner(myResult); + //SetAutoHilight(aResOwner.get() == NULL); // Set own free boundaries aspect in order to have free // and unfree boundaries with different colors