diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-28 23:06:58 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-28 23:06:58 +0200 |
| commit | 805a0aa1fe2955b2cf425a0b4f444ea49348bd7e (patch) | |
| tree | d44eafefd9cfef03431125f0cc12dc44ae7c5689 /engine | |
| parent | 0cbf183b7e9e4ef8cc7f4ad64521a6b8e6a436be (diff) | |
Diffstat (limited to 'engine')
| -rw-r--r-- | engine/src/asset.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/engine/src/asset.rs b/engine/src/asset.rs index 6b27928..afa0ea4 100644 --- a/engine/src/asset.rs +++ b/engine/src/asset.rs @@ -669,7 +669,7 @@ pub struct Submitter<'path> impl Submitter<'_> { - pub fn submit_store<AssetT>(&self, asset: AssetT) -> Handle<AssetT> + pub fn submit_store<AssetT>(&self, asset: AssetT) where AssetT: Asset, { @@ -678,8 +678,6 @@ impl Submitter<'_> name: None, }; - let label_hash = LabelHash::new(&label.as_label()); - let _ = self.import_work_msg_sender.send(ImportWorkMessage::Store { do_store: |assets, label, boxed_asset| { let Ok(asset) = boxed_asset.downcast::<AssetT>() else { @@ -691,15 +689,9 @@ impl Submitter<'_> label, asset: Box::new(asset), }); - - Handle::new(label_hash) } - pub fn submit_store_named<AssetT>( - &self, - name: impl AsRef<str>, - asset: AssetT, - ) -> Handle<AssetT> + pub fn submit_store_named<AssetT>(&self, name: impl AsRef<str>, asset: AssetT) where AssetT: Asset, { @@ -708,8 +700,6 @@ impl Submitter<'_> name: Some(name.as_ref().into()), }; - let label_hash = LabelHash::new(&label.as_label()); - let _ = self.import_work_msg_sender.send(ImportWorkMessage::Store { do_store: |assets, label, boxed_asset| { let Ok(asset) = boxed_asset.downcast::<AssetT>() else { @@ -721,8 +711,6 @@ impl Submitter<'_> label, asset: Box::new(asset), }); - - Handle::new(label_hash) } } |
