fix: scenegraph errors

This commit is contained in:
Nova
2024-10-31 07:40:06 -04:00
parent 4f01bd5eec
commit be709efbdd
3 changed files with 11 additions and 10 deletions

View File

@@ -129,7 +129,8 @@ impl Node {
.global_transform()
.to_scale_rotation_translation()
.0
.length_squared() > 0.0
.length_squared()
> 0.0
} else {
true
}
@@ -176,7 +177,7 @@ impl Node {
) -> Result<(), ScenegraphError> {
if let Ok(alias) = self.get_aspect::<Alias>() {
if !alias.info.server_signals.iter().any(|e| *e == method) {
return Err(ScenegraphError::SignalNotFound);
return Err(ScenegraphError::MemberNotFound);
}
alias
.original
@@ -193,7 +194,7 @@ impl Node {
.clone();
aspect
.run_signal(calling_client, self.clone(), method, message)
.map_err(|error| ScenegraphError::SignalError {
.map_err(|error| ScenegraphError::MemberError {
error: error.to_string(),
})
}
@@ -208,7 +209,7 @@ impl Node {
) {
if let Ok(alias) = self.get_aspect::<Alias>() {
if !alias.info.server_methods.iter().any(|e| *e == method) {
response.send(Err(ScenegraphError::MethodNotFound));
response.send(Err(ScenegraphError::MemberNotFound));
return;
}
let Some(alias) = alias.original.upgrade() else {