mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 16:48:12 +08:00
Fix freehand and spline tool
This commit is contained in:
committed by
Keavon Chambers
parent
76d7b6256d
commit
6173662a40
@@ -94,4 +94,5 @@ pub enum VectorDataModification {
|
||||
SetManipulatorHandleMirroring { id: ManipulatorGroupId, mirror_angle: bool },
|
||||
SetManipulatorPosition { point: ManipulatorPointId, position: DVec2 },
|
||||
ToggleManipulatorHandleMirroring { id: ManipulatorGroupId },
|
||||
UpdateSubpaths { subpaths: Vec<Subpath<ManipulatorGroupId>> },
|
||||
}
|
||||
|
||||
@@ -378,6 +378,11 @@ impl<'a> ModifyInputsContext<'a> {
|
||||
}
|
||||
|
||||
fn delete_layer(&mut self, id: NodeId) {
|
||||
if !self.network.nodes.contains_key(&id) {
|
||||
warn!("Deleting layer node that does not exist");
|
||||
return;
|
||||
}
|
||||
|
||||
let mut new_input = None;
|
||||
let post_node = self.outwards_links.get(&id).and_then(|links| links.first().copied());
|
||||
let mut delete_nodes = vec![id];
|
||||
|
||||
+1
@@ -316,6 +316,7 @@ impl<'a> VectorModificationState<'a> {
|
||||
VectorDataModification::SetManipulatorHandleMirroring { id, mirror_angle } => self.set_mirror(id, mirror_angle),
|
||||
VectorDataModification::SetManipulatorPosition { point, position } => self.set_position(point, position),
|
||||
VectorDataModification::ToggleManipulatorHandleMirroring { id } => self.toggle_mirror(id),
|
||||
VectorDataModification::UpdateSubpaths { subpaths } => *self.subpaths = subpaths,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user