From 65171a5b8e46c1b0998c64029c45efeffd5df5d3 Mon Sep 17 00:00:00 2001 From: Priyanshu Date: Mon, 8 Sep 2025 03:38:56 +0530 Subject: [PATCH] Fix Path tool box selection not selecting enclosed segments, only intersected (#3141) fix path tool box selection not selecting the enclosed segment Co-authored-by: Keavon Chambers --- editor/src/messages/tool/common_functionality/shape_editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/messages/tool/common_functionality/shape_editor.rs b/editor/src/messages/tool/common_functionality/shape_editor.rs index 1c937ae2..b97efd6e 100644 --- a/editor/src/messages/tool/common_functionality/shape_editor.rs +++ b/editor/src/messages/tool/common_functionality/shape_editor.rs @@ -2123,7 +2123,7 @@ impl ShapeState { let select = match selection_shape { SelectionShape::Box(rect) => { - let enclosed = segment_bbox.contains_rect(rect); + let enclosed = rect.contains_rect(segment_bbox); match selection_mode { SelectionMode::Enclosed => enclosed, _ => {