# 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)
return myObjects (anObj)->IsHilighted();
}
- return theOwner->IsSelected();
+ const Handle(Prs3d_Drawer)& aStyle = getSelStyle (anObj, theOwner);
+ const Standard_Integer aHiMode = getHilightMode (anObj, aStyle, -1);
+ return theOwner->IsHilighted (myMainPM, aHiMode);
}
//=======================================================================