fn belongs_to_standalone_branch(&mut self, id: usize, context: &ScreenContext) -> bool {
        if let Some(behavior) = context.data.get_behavior(self.get_curr_behavior_id(context), self.graph_type) {

            for (source_node_id , _source_connector, dest_node_id, _dest_connector) in &behavior.data.connections {
                if *dest_node_id == id {
                    return self.belongs_to_standalone_branch(*source_node_id, context);
                }
            }

            if let Some(node_data) = behavior.data.nodes.get(&id) {
                if node_data.behavior_type != BehaviorNodeType::BehaviorTree {
                    return true;
                }
            }
        }

        false
    }
/// Checks if the given node id is part of an unconnected branch.
Checks if the given node id is part of an unconnected branch.
Checks if the given node id is part of an unconnected branch .
fn belongs_to_standalone_branch(&mut self, id: usize, context: &ScreenContext) -> bool {
        if let Some(behavior) = context.data.get_behavior(self.get_curr_behavior_id(context), self.graph_type) {
            for (source_node_id , _source_connector, dest_node_id, _dest_connector) in &behavior.data.connections {
                if *dest_node_id == id {
                    return self.belongs_to_standalone_branch(*source_node_id, context);
                }
            }
            if let Some(node_data) = behavior.data.nodes.get(&id) {
                if node_data.behavior_type != BehaviorNodeType::BehaviorTree {
                    return true;
                }
            }
        }
        false
    }
fn belongs_to_standalone_branch ( & mut self , id : usize , context : & ScreenContext ) -> bool { if let Some ( behavior ) = context . data . get_behavior ( self . get_curr_behavior_id ( context ) , self . graph_type ) { for ( source_node_id , _source_connector , dest_node_id , _dest_connector ) in & behavior . data . connections { if * dest_node_id == id { return self . belongs_to_standalone_branch ( * source_node_id , context ) ; } } if let Some ( node_data ) = behavior . data . nodes . get ( & id ) { if node_data . behavior_type != BehaviorNodeType :: BehaviorTree { return true ; } } } false }
Checks if the given node id is part of an unconnected branch.
Checks if the given node id is part of an unconnected branch .
&mut self
id
usize
context
&ScreenContext
&mut self
id
usize
context
&ScreenContext