Skip to content

Commit 4eca3cc

Browse files
committed
review fixes
1 parent ef823aa commit 4eca3cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories.workspace = true
1313
readme.workspace = true
1414

1515
[workspace.package]
16-
version = "0.16.1"
16+
version = "0.16.0"
1717
edition = "2024"
1818
authors = ["Maksymilian Mozolewski <makspl17@gmail.com>"]
1919
license = "MIT OR Apache-2.0"

crates/bevy_mod_scripting_bindings/src/reference.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ impl ReflectReference {
290290

291291
let untyped_handle = self.with_reflect(world.clone(), |reflect| {
292292
let reflect_any = reflect.try_as_reflect().ok_or_else(|| {
293-
InteropError::type_mismatch(
294-
std::any::TypeId::of::<dyn bevy_reflect::Reflect>(),
293+
InteropError::unsupported_operation(
295294
Some(handle_type_id),
295+
None,
296+
"Asset handle must implement Reflect trait for asset operations",
296297
)
297-
.with_context("Handle must implement Reflect trait for asset operations")
298298
})?;
299299

300300
reflect_handle

0 commit comments

Comments
 (0)