mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 14:08:12 +08:00
Fix deleting the shape node (#1411)
This commit is contained in:
+1
-4
@@ -2474,10 +2474,7 @@ pub fn new_vector_network(subpaths: Vec<bezier_rs::Subpath<uuid::ManipulatorGrou
|
|||||||
let stroke = resolve_document_node_type("Stroke").expect("Stroke node does not exist");
|
let stroke = resolve_document_node_type("Stroke").expect("Stroke node does not exist");
|
||||||
let output = resolve_document_node_type("Output").expect("Output node does not exist");
|
let output = resolve_document_node_type("Output").expect("Output node does not exist");
|
||||||
|
|
||||||
let mut network = NodeNetwork {
|
let mut network = NodeNetwork::default();
|
||||||
inputs: vec![0],
|
|
||||||
..Default::default()
|
|
||||||
};
|
|
||||||
|
|
||||||
network.push_node(
|
network.push_node(
|
||||||
path_generator.to_document_node_default_inputs([Some(NodeInput::value(TaggedValue::Subpaths(subpaths), false))], DocumentNodeMetadata::position((0, 4))),
|
path_generator.to_document_node_default_inputs([Some(NodeInput::value(TaggedValue::Subpaths(subpaths), false))], DocumentNodeMetadata::position((0, 4))),
|
||||||
|
|||||||
Reference in New Issue
Block a user