tree: fix visiting output children
This commit is contained in:
parent
12ec0e6502
commit
510f49e7bc
2 changed files with 8 additions and 3 deletions
|
|
@ -212,6 +212,10 @@ pub trait Node: 'static {
|
|||
fn node_location(&self) -> Option<NodeLocation>;
|
||||
fn node_layer(&self) -> NodeLayerLink;
|
||||
|
||||
fn node_output_id(&self) -> Option<OutputNodeId> {
|
||||
self.node_output().map(|o| o.id)
|
||||
}
|
||||
|
||||
fn node_child_title_changed(self: Rc<Self>, child: &dyn Node, title: &str) {
|
||||
let _ = child;
|
||||
let _ = title;
|
||||
|
|
|
|||
|
|
@ -990,10 +990,11 @@ impl OutputNode {
|
|||
|
||||
fn visit_children(&self, visitor: &mut dyn NodeVisitor) {
|
||||
self.node_visit_children(visitor);
|
||||
for ws in self.workspaces.iter() {
|
||||
for stacked in ws.stacked.iter() {
|
||||
stacked.deref().clone().node_visit(visitor);
|
||||
for stacked in self.state.root.stacked.iter() {
|
||||
if stacked.node_output_id() != Some(self.id) {
|
||||
continue;
|
||||
}
|
||||
stacked.deref().clone().node_visit(visitor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue