Skip to content

Commit

Permalink
hack to fix an error calling no_world_in_context
Browse files Browse the repository at this point in the history
  • Loading branch information
eupraxia05 authored and jakobhellermann committed Mar 28, 2024
1 parent 0c691be commit f29b0fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy-inspector-egui/src/inspector_egui_impls/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ impl InspectorPrimitive for Handle<Image> {
env: InspectorUi<'_, '_>,
) -> bool {
let Some(world) = &mut env.context.world else {
//no_world_in_context(ui, self.reflect_short_type_path());
let immutable_self: &Handle<Image> = self;
no_world_in_context(ui, immutable_self.reflect_short_type_path());
return false;
};

Expand Down

0 comments on commit f29b0fa

Please # to comment.