Fix path overlays and pen tool click (#720)

* Fix path overlays

* Fix pen tool click
This commit is contained in:
0HyperCube 2022-07-09 21:20:37 +01:00 committed by Keavon Chambers
parent 00cc50d531
commit 13305af8c4
2 changed files with 5 additions and 1 deletions

View File

@ -150,6 +150,10 @@ impl Fsm for PathToolFsmState {
// Set the newly targeted layers to visible // Set the newly targeted layers to visible
let layer_paths = document.selected_visible_layers().map(|layer_path| layer_path.to_vec()).collect(); let layer_paths = document.selected_visible_layers().map(|layer_path| layer_path.to_vec()).collect();
tool_data.shape_editor.set_selected_layers(layer_paths); tool_data.shape_editor.set_selected_layers(layer_paths);
// Render the new overlays
for layer_path in tool_data.shape_editor.selected_layers() {
tool_data.overlay_renderer.render_vector_shape_overlays(&document.graphene_document, layer_path.to_vec(), responses);
}
// This can happen in any state (which is why we return self) // This can happen in any state (which is why we return self)
self self

View File

@ -222,7 +222,7 @@ impl Fsm for PenToolFsmState {
} }
.into(), .into(),
); );
responses.push_back(add_anchor(&tool_data.path, VectorAnchor::new(start_position))); responses.push_back(add_anchor(&tool_data.path, VectorAnchor::new_with_handles(start_position, Some(start_position), Some(start_position))));
} }
PenToolFsmState::DraggingHandle PenToolFsmState::DraggingHandle