]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #22744: Visualization problems. Make compsolid presentation to follow defined...
authorvsv <vsv@opencascade.com>
Tue, 2 Feb 2021 08:27:47 +0000 (11:27 +0300)
committervsv <vsv@opencascade.com>
Tue, 2 Feb 2021 08:27:47 +0000 (11:27 +0300)
src/ModuleBase/ModuleBase_ResultPrs.cpp

index 10f3d798b25145243c6853cb21a2df92a9c2d29d..447be6b7b6427cfebe9b2abb27bb14de7729bfa4 100644 (file)
@@ -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