Fix Properties panel to show selected layers/nodes

This commit is contained in:
Keavon Chambers
2023-12-09 04:08:07 -08:00
parent e459e599b4
commit c33ba1b315
8 changed files with 89 additions and 62 deletions
@@ -305,7 +305,7 @@ impl BrushToolData {
};
self.layer = Some(layer);
for (node, node_id) in document.network().primary_flow_from_node(Some(layer.to_node())) {
for (node, node_id) in document.network().upstream_flow_back_from_nodes(vec![layer.to_node()], true) {
if node.name == "Brush" {
let points_input = node.inputs.get(2)?;
let NodeInput::Value {