Skip to content

Commit dc2e478

Browse files
committed
fix: can no longer hide cursor if anchor selected
remove debug statement
1 parent 82df4fe commit dc2e478

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

editor/src/messages/tool/common_functionality/shape_editor.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,9 @@ impl ShapeState {
10861086
continue;
10871087
};
10881088
for point in self.selected_points() {
1089+
if let Some(_) = point.as_anchor() {
1090+
return false;
1091+
}
10891092
if let Some(_) = point.get_handle_pair(&vector_data) {
10901093
return true;
10911094
}

editor/src/messages/tool/tool_messages/path_tool.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ impl Fsm for PathToolFsmState {
579579

580580
PathToolFsmState::DrawingBox
581581
}
582-
(PathToolFsmState::Dragging { .. }, PathToolMessage::PointerMove { alt, shift, move_anchor_and_handles }) => {
582+
(PathToolFsmState::Dragging(_), PathToolMessage::PointerMove { alt, shift, move_anchor_and_handles }) => {
583583
let anchor_and_handle_toggled = input.keyboard.get(move_anchor_and_handles as usize);
584584
let initial_press = anchor_and_handle_toggled && !tool_data.select_anchor_toggled;
585585
let released_from_toggle = tool_data.select_anchor_toggled && !anchor_and_handle_toggled;
@@ -809,7 +809,6 @@ impl Fsm for PathToolFsmState {
809809
]),
810810
PathToolFsmState::Dragging(dragging_state) => {
811811
let colinear = dragging_state.colinear;
812-
debug!("STATE: {:?}", &dragging_state);
813812
let mut dragging_hint_data = HintData(Vec::new());
814813
dragging_hint_data
815814
.0

0 commit comments

Comments
 (0)