Chore: Don't let draft lines receive mouseEnter/Leave events, or create invalid overlays (#4306)
This commit is contained in:
@ -746,7 +746,6 @@ export class SceneEntities {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
...this.mouseEnterLeaveCallbacks(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
setupDraftRectangle = async (
|
setupDraftRectangle = async (
|
||||||
|
@ -213,7 +213,7 @@ export class SceneInfra {
|
|||||||
to: Coords2d
|
to: Coords2d
|
||||||
angle?: number
|
angle?: number
|
||||||
}): SegmentOverlayPayload | null {
|
}): SegmentOverlayPayload | null {
|
||||||
if (group.userData.pathToNode && arrowGroup) {
|
if (!group.userData.draft && group.userData.pathToNode && arrowGroup) {
|
||||||
const vector = new Vector3(0, 0, 0)
|
const vector = new Vector3(0, 0, 0)
|
||||||
|
|
||||||
// Get the position of the object3D in world space
|
// Get the position of the object3D in world space
|
||||||
|
@ -147,6 +147,7 @@ class StraightSegment implements SegmentUtils {
|
|||||||
segmentGroup.name = STRAIGHT_SEGMENT
|
segmentGroup.name = STRAIGHT_SEGMENT
|
||||||
segmentGroup.userData = {
|
segmentGroup.userData = {
|
||||||
type: STRAIGHT_SEGMENT,
|
type: STRAIGHT_SEGMENT,
|
||||||
|
draft: isDraftSegment,
|
||||||
id,
|
id,
|
||||||
from,
|
from,
|
||||||
to,
|
to,
|
||||||
@ -347,6 +348,7 @@ class TangentialArcToSegment implements SegmentUtils {
|
|||||||
mesh.name = meshName
|
mesh.name = meshName
|
||||||
group.userData = {
|
group.userData = {
|
||||||
type: TANGENTIAL_ARC_TO_SEGMENT,
|
type: TANGENTIAL_ARC_TO_SEGMENT,
|
||||||
|
draft: isDraftSegment,
|
||||||
id,
|
id,
|
||||||
from,
|
from,
|
||||||
to,
|
to,
|
||||||
@ -520,6 +522,7 @@ class CircleSegment implements SegmentUtils {
|
|||||||
arcMesh.name = meshType
|
arcMesh.name = meshType
|
||||||
group.userData = {
|
group.userData = {
|
||||||
type: CIRCLE_SEGMENT,
|
type: CIRCLE_SEGMENT,
|
||||||
|
draft: isDraftSegment,
|
||||||
id,
|
id,
|
||||||
from,
|
from,
|
||||||
radius,
|
radius,
|
||||||
|
Reference in New Issue
Block a user