fix(scenegraph): don't set node's client in add_node

This commit is contained in:
Nova
2022-08-21 23:11:05 -04:00
parent aae271a2a8
commit ae3afe4a09

View File

@@ -22,8 +22,6 @@ impl Scenegraph {
}
pub fn add_node(&self, node: Node) -> Arc<Node> {
let mut node = node;
node.client = Arc::downgrade(&self.get_client());
let path = node.get_path().to_string();
let node_arc = Arc::new(node);
self.nodes.insert(path, node_arc.clone());