]> OCCT Git - occt-copy.git/commit
0030726: Visualization - change Selected state of owner in AIS_Selection
authornds <nds@opencascade.com>
Fri, 24 May 2019 06:50:47 +0000 (09:50 +0300)
committernds <nds@opencascade.com>
Fri, 24 May 2019 13:06:57 +0000 (16:06 +0300)
commitc5e4b10f960af59c11659db00a6a98af16741cd3
tree2720a2967bbca335a78daaafc72dd5c97436f9bf
parent2fb3ed87a516a4efb45ea8713e6df470d0342ac0
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 b3d449ff2f7b8ed5afba33106d045427d2c146de)
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_Selection.cxx