refactor(model): clone stereokit model asap

This commit is contained in:
Nova
2022-09-19 10:42:19 -04:00
parent ca192e18a9
commit a832232cbf

View File

@@ -77,10 +77,8 @@ impl Model {
.get_or_try_init(|| {
self.pending_model_path
.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)
.as_ref()
.cloned()
.ok_or(Error)
})
.ok();