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.
This commit is contained in:
akl 2014-08-29 12:32:37 +04:00
parent 2e1ae88a9e
commit 0f781d0d92

View File

@ -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;