From 0f781d0d92e7d0d3a2ffb9004504507449b66c16 Mon Sep 17 00:00:00 2001 From: akl Date: Fri, 29 Aug 2014 12:32:37 +0400 Subject: [PATCH] Switching-off the highlighting selected objects to avoid keeping object's wireframe in case of changing shape properties (for example: 'Clear Top Level State','Color', 'Isos') calling popup menu over the shape in OCC viewer. --- src/OBJECT/GEOM_AISShape.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/OBJECT/GEOM_AISShape.cxx b/src/OBJECT/GEOM_AISShape.cxx index 341018e89..fe26569e1 100644 --- a/src/OBJECT/GEOM_AISShape.cxx +++ b/src/OBJECT/GEOM_AISShape.cxx @@ -216,6 +216,10 @@ void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresent if (IsInfinite()) aPrs->SetInfiniteState(Standard_True); //pas de prise en compte lors du FITALL Handle(AIS_InteractiveContext) anIC = GetContext(); + // AKL: use old behavior to avoid keeping object's wireframe + // if to change shape properties (for example: 'Clear Top Level State','Color', 'Isos') + // calling popup menu over(!) the shape in OCC viewer. + anIC->SetToHilightSelected( false ); bool anIsField = !myFieldStepData.isEmpty(); bool anIsColorField = anIsField && myFieldDataType != GEOM::FDT_String; -- 2.39.2