mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Fix regressions from network interface PR (#1906)
* Fix regressions * Remove unnecessary graph render in box selection * Improve stack positioning * Store layer stacks as absolute position * Improve automatically creating chains * Improve group selection * Increase horizontal layer spacing by 1 * Fix export crash and demo artwork * Improve inserting node onto wire, fix spline crash * Remove comment
This commit is contained in:
parent
e46af89708
commit
8041b1237c
14 changed files with 436 additions and 190 deletions
|
@ -783,8 +783,10 @@ impl EditorHandle {
|
|||
let mut shape = None;
|
||||
|
||||
if let Some(mut modify_inputs) = ModifyInputsContext::new_with_layer(layer, &mut document.network_interface, &mut responses) {
|
||||
let Some(transform_node_id) = modify_inputs.get_existing_node_id("Transform") else { return };
|
||||
if !updated_nodes.insert(transform_node_id) {
|
||||
let Some(transform_node_id) = modify_inputs.existing_node_id("Transform") else {
|
||||
return;
|
||||
};
|
||||
if !updated_nodes.insert(transform_node_id.clone()) {
|
||||
return;
|
||||
}
|
||||
let Some(inputs) = modify_inputs.network_interface.network(&[]).unwrap().nodes.get(&transform_node_id).map(|node| &node.inputs) else {
|
||||
|
@ -798,7 +800,9 @@ impl EditorHandle {
|
|||
update_transform(&mut document.network_interface, &transform_node_id, pivot_transform * transform * pivot_transform.inverse());
|
||||
}
|
||||
if let Some(mut modify_inputs) = ModifyInputsContext::new_with_layer(layer, &mut document.network_interface, &mut responses) {
|
||||
let Some(shape_node_id) = modify_inputs.get_existing_node_id("Shape") else { return };
|
||||
let Some(shape_node_id) = modify_inputs.existing_node_id("Shape") else {
|
||||
return;
|
||||
};
|
||||
if !updated_nodes.insert(shape_node_id) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue