]> 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>
Sat, 1 Jun 2019 17:15:53 +0000 (20:15 +0300)
commit0925ee243520ffdf0051076415b504c7530904dd
treeed82a879b0c448ac510ed8c471e1b9bd40234ae9
parent618238791bf6f511e36455e89a780c62c401da50
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)
(cherry picked from commit c5e4b10f960af59c11659db00a6a98af16741cd3)
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_Selection.cxx