Remove errant line following cursor in snap overlays during constrained line drawing (#2206)

* fix(line-tool): disable snap overlays during constrained drawing

* Update editor/src/messages/tool/tool_messages/line_tool.rs

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Sidharth-Singh10
2025-01-24 14:10:01 -08:00
committed by GitHub
co-authored by Keavon Chambers
parent 6effb2d6e6
commit 3048466e86
@@ -156,7 +156,7 @@ impl LayerSnapper {
target: path.target,
distance,
tolerance,
curves: [path.bounds.is_none().then_some(path.document_curve), Some(constraint_path)],
curves: [path.bounds.is_none().then_some(path.document_curve), None],
source: point.source,
target_bounds: path.bounds,
at_intersection: true,