Skip to content

Commit f808e6d

Browse files
authored
Fix freehand tool showing all anchors in overlay (#3585)
Use anchor_endpoints() instead of anchor_points() in path_endpoint_overlays() to only show overlays at true path endpoints, not intermediate points
1 parent fcf32b3 commit f808e6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

editor/src/messages/portfolio/document/overlays/utility_functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub fn path_endpoint_overlays(document: &DocumentMessageHandler, shape_editor: &
210210
let selected = shape_editor.selected_shape_state.get(&layer);
211211
let is_selected = |selected: Option<&SelectedLayerState>, point: ManipulatorPointId| selected.is_some_and(|selected| selected.is_point_selected(point));
212212

213-
for point in vector.anchor_points() {
213+
for point in vector.anchor_endpoints() {
214214
let Some(position) = vector.point_domain.position_from_id(point) else { continue };
215215
let position = transform.transform_point2(position);
216216
overlay_context.manipulator_anchor(position, is_selected(selected, ManipulatorPointId::Anchor(point)), None);

0 commit comments

Comments
 (0)