fix: new apis

This commit is contained in:
Nova
2024-05-28 01:24:49 -04:00
parent 89fcc55cca
commit d7fba79be9
5 changed files with 445 additions and 426 deletions

View File

@@ -103,7 +103,7 @@ impl Node {
aspects: Default::default(),
destroyable,
};
<Node as NodeAspect>::add_node_members(&node);
<Node as OwnedAspect>::add_node_members(&node);
node
}
pub fn add_to_scenegraph(self) -> Result<Arc<Node>> {
@@ -267,7 +267,7 @@ impl Debug for Node {
.finish()
}
}
impl NodeAspect for Node {
impl OwnedAspect for Node {
fn set_enabled(node: Arc<Node>, _calling_client: Arc<Client>, enabled: bool) -> Result<()> {
node.enabled.store(enabled, Ordering::Relaxed);
Ok(())