refactor(model): clone stereokit model asap
This commit is contained in:
@@ -77,10 +77,8 @@ impl Model {
|
|||||||
.get_or_try_init(|| {
|
.get_or_try_init(|| {
|
||||||
self.pending_model_path
|
self.pending_model_path
|
||||||
.get()
|
.get()
|
||||||
.and_then(|path| SKModel::from_file(sk, path.as_path(), None))
|
.and_then(|path| SKModel::from_file(sk, path.as_path(), None).clone())
|
||||||
.map(SendWrapper::new)
|
.map(SendWrapper::new)
|
||||||
.as_ref()
|
|
||||||
.cloned()
|
|
||||||
.ok_or(Error)
|
.ok_or(Error)
|
||||||
})
|
})
|
||||||
.ok();
|
.ok();
|
||||||
|
|||||||
Reference in New Issue
Block a user