ArrayIndexOutOfRange when Lane Arrow Tool enabled #606
Labels
11 ALPHA
TM:PE v11 alpha edition
BUG
Defect detected
confirmed
Represents confirmed issue or bug
high priority
Affects lots of users
LANE ROUTING
Feature: Lane arrows / connectors
Overlays
Overlays, data vis, etc.
Milestone
Describe the problem
I found a bug related to
hoveredSegmentsId
andhoveredNodeId
, both values are currently used for rendering overlay when user hover mouse cursor above segment (indication of lane arrows can be changed).Current Alpha version throws
ArrayIndexOutOfRange
because hoveredSegment is not connected to hoveredNode (ExtSegmentEndManager.GetIndex(ushort segmentId, ushort nodeId)
returns -1). It's clearly raycasting issue.Steps to reproduce
See gif below.
"Video"
Notes
My current fix returns
false
fromHasHoverLaneArrows
ifExtSegmentEndManager.GetIndex(segmentId, nodeId)
equals-1
- node is not part of segment.I will create PR later tomorrow.
BTW, I think I fixed cursor flickering (needs more tests) - easily visible on animation above
The text was updated successfully, but these errors were encountered: