Fix Path tool not displaying its hints during G/R/S modes (#3222)

* Path tool no longer overrides other hints

* Related cleanup

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Austin Henlotter 2026-02-15 23:23:47 -05:00 committed by GitHub
parent f186465220
commit 5b92901715
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -1879,6 +1879,7 @@ impl ShapeState {
_ => self.sorted_selected_layers(network_interface.document_metadata()).find_map(closest_seg),
}
}
pub fn get_dragging_state(&self, network_interface: &NodeNetworkInterface) -> PointSelectState {
for &layer in self.selected_shape_state.keys() {
let Some(vector) = network_interface.compute_modified_vector(layer) else { continue };

View File

@ -3182,10 +3182,9 @@ impl Fsm for PathToolFsmState {
PathToolFsmState::Ready
}
(_, PathToolMessage::SelectedPointUpdated) => {
let colinear = shape_editor.selected_manipulator_angles(&document.network_interface);
tool_data.dragging_state = DraggingState {
point_select_state: shape_editor.get_dragging_state(&document.network_interface),
colinear,
colinear: shape_editor.selected_manipulator_angles(&document.network_interface),
};
let old = tool_data.make_path_editable_is_allowed;
@ -3663,4 +3662,5 @@ fn update_dynamic_hints(
PathToolFsmState::SlidingPoint => HintData(vec![HintGroup(vec![HintInfo::mouse(MouseMotion::Rmb, ""), HintInfo::keys([Key::Escape], "Cancel").prepend_slash()])]),
};
hint_data.send_layout(responses);
responses.add(ToolMessage::UpdateHints);
}