]> OCCT Git - occt-copy.git/commit
0030726: Visualization - change Selected state of owner in AIS_Selection
authornds <nds@opencascade.com>
Wed, 22 May 2019 11:24:12 +0000 (14:24 +0300)
committernds <nds@opencascade.com>
Wed, 22 May 2019 11:25:40 +0000 (14:25 +0300)
commit91e3f56d8a50b012eb1a33c19af32236e9a8c369
treeca675eb2a9ae3a423bab2092bb4ab7886d9fa170
parentd041d19313acee0b9450bdb5db1067e95a774b39
0030726: Visualization - change Selected state of owner in AIS_Selection

# IsHilighted by owner should use the same logic like when it is highlighted. IsSelected 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.

(cherry picked from commit 7d778441498ef0f0f545c800c671ee693bb5cf05)
src/AIS/AIS_InteractiveContext.cxx