]> 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 06:50:47 +0000 (09:50 +0300)
commitb3d449ff2f7b8ed5afba33106d045427d2c146de
tree5193fd953f82c5149922f96c082d742dd87f158b
parentdc5ca5bf660d67dab8db145a6363a9e15a30b995
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.
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_Selection.cxx