Skip to content

Commit

Permalink
Update InspectorEguiImplFnMany to match the bevy-inspector-egui defin…
Browse files Browse the repository at this point in the history
…ition.
  • Loading branch information
andriyDev committed Nov 13, 2024
1 parent cd92d2b commit 7ee945a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ use std::{
use crate::{editor::LookupCurveEguiEditor, LookupCache, LookupCurve};
use bevy_app::{App, Plugin};
use bevy_asset::{Assets, Handle};
use bevy_inspector_egui::inspector_egui_impls::InspectorEguiImpl;
use bevy_inspector_egui::reflect_inspector::InspectorUi;
use bevy_reflect::{Reflect, TypeRegistry};
use bevy_inspector_egui::{
inspector_egui_impls::InspectorEguiImpl, reflect_inspector::ProjectorReflect,
};
use bevy_reflect::{PartialReflect, TypeRegistry};

pub(crate) struct InspectorPlugin;

Expand Down Expand Up @@ -44,8 +46,8 @@ type InspectorEguiImplFnMany = for<'a> fn(
&dyn Any,
egui::Id,
InspectorUi<'_, '_>,
&mut [&mut dyn Reflect],
&dyn Fn(&mut dyn Reflect) -> &mut dyn Reflect,
&mut [&mut dyn PartialReflect],
&dyn ProjectorReflect,
) -> bool;

fn add_raw<T: 'static>(
Expand All @@ -65,8 +67,8 @@ fn many_unimplemented(
_options: &dyn Any,
_id: egui::Id,
_env: InspectorUi<'_, '_>,
_values: &mut [&mut dyn Reflect],
_projector: &dyn Fn(&mut dyn Reflect) -> &mut dyn Reflect,
_values: &mut [&mut dyn PartialReflect],
_projector: &dyn ProjectorReflect,
) -> bool {
ui.label("LookupCurve does not support multi-editing.");
false
Expand Down

0 comments on commit 7ee945a

Please sign in to comment.