show selected color for start selected at (#1606)

This commit is contained in:
Kurt Hutten
2024-03-02 19:00:24 +11:00
committed by GitHub
parent 73bca2dcfc
commit 0c50a5996d
3 changed files with 15 additions and 4 deletions

View File

@ -419,7 +419,11 @@ class SceneEntities {
},
onMouseLeave: ({ object }) => {
sceneInfra.highlightCallback([0, 0])
const parent = getParentGroup(object)
const parent = getParentGroup(object, [
STRAIGHT_SEGMENT,
TANGENTIAL_ARC_TO_SEGMENT,
PROFILE_START,
])
const isSelected = parent?.userData?.isSelected
colorSegment(object, isSelected ? 0x0000ff : 0xffffff)
if ([X_AXIS, Y_AXIS].includes(object?.userData?.type)) {