feat(input): captured bool

This commit is contained in:
Nova
2023-10-24 00:41:17 -04:00
parent 9d1181aaca
commit f893491bed
3 changed files with 25 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ impl Scenegraph {
pub fn get_node(&self, path: &str) -> Option<Arc<Node>> {
let mut node = self.nodes.lock().get(path)?.clone();
while let Some(alias) = node.alias.get() {
if alias.enabled.load(Ordering::Relaxed) {
if alias.enabled.load(Ordering::Acquire) {
node = alias.original.upgrade()?;
} else {
return None;