0030726: Visualization - change Selected state of owner in AIS_Selection
authornds <nds@opencascade.com>
Thu, 6 Jun 2019 08:50:21 +0000 (11:50 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 7 Jun 2019 12:02:39 +0000 (15:02 +0300)
commit8d2c79f4e3971ed6b67af3573dae2ea03506eb1d
tree0898263b464f6dc7637a54719ecf2d0a7be75292
parentfc552d842e7da8c0f9b0f705235121a336ab9ee9
0030726: Visualization - change Selected state of owner in AIS_Selection

AIS_InteractiveContext::IsHilighted() behavior has been changed.
It should use the same logic for owner processing like when it is highlighted. IsSelected of owner is used for selection state, not highlight.

 Without this correction, object is never shown as selected by click (Select(bool)):
 if (!HighlightStyle (theOwner, aCustomStyle) ||
    (!aCustomStyle.IsNull() && aCustomStyle != anObjSelStyle))

 IsSelected is already true, so the highlight style is equal to selection style, nothing to do.
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_Selection.cxx