Chore: Don't let draft lines receive mouseEnter/Leave events, or create invalid overlays (#4306)

This commit is contained in:
Frank Noirot
2024-10-25 15:34:53 -04:00
committed by GitHub
parent 1140ced121
commit 7e31678ba2
3 changed files with 4 additions and 2 deletions

View File

@ -213,7 +213,7 @@ export class SceneInfra {
to: Coords2d
angle?: number
}): SegmentOverlayPayload | null {
if (group.userData.pathToNode && arrowGroup) {
if (!group.userData.draft && group.userData.pathToNode && arrowGroup) {
const vector = new Vector3(0, 0, 0)
// Get the position of the object3D in world space