fix(model): no panics
This commit is contained in:
@@ -291,11 +291,13 @@ impl Model {
|
||||
}
|
||||
drop(parts);
|
||||
|
||||
if self.space.node().unwrap().enabled() {
|
||||
if let Some(node) = self.space.node() {
|
||||
if node.enabled() {
|
||||
sk_model.draw(token, self.space.global_transform(), None, None);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: proper hread safety in stereokit_rust (probably just bind stereokit directly)
|
||||
unsafe impl Send for Model {}
|
||||
unsafe impl Sync for Model {}
|
||||
|
||||
Reference in New Issue
Block a user