tirbofish/dropbear · diff
fix: ensured all CollapsibleHeaders are open and they have their own ID salt.
Signature present but could not be verified.
Unverified
@@ -105,12 +105,13 @@ impl InspectableComponent for AnimationComponent { fn inspect( &mut self, _world: &World, - _entity: Entity, + entity: Entity, ui: &mut Ui, _graphics: Arc<SharedGraphicsContext>, ) { CollapsingHeader::new("Animation") .default_open(true) + .id_salt(format!("Animation {}", entity.to_bits())) .show(ui, |ui| { let has_animations = !self.available_animations.is_empty(); let mut enabled = self.active_animation_index.is_some() && has_animations; @@ -79,6 +79,7 @@ impl InspectableComponent for BillboardComponent { ) { CollapsingHeader::new("Billboard") .default_open(true) + .id_salt(format!("Billboard {}", entity.to_bits())) .show(ui, |ui| { if ui.button("Edit in UI Editor").clicked() { ui.ctx().data_mut(|d| { @@ -77,12 +77,13 @@ impl InspectableComponent for Camera { fn inspect( &mut self, _world: &World, - _entity: Entity, + entity: Entity, ui: &mut Ui, _graphics: Arc<SharedGraphicsContext>, ) { CollapsingHeader::new("Camera3D") .default_open(true) + .id_salt(format!("Camera3D {}", entity.to_bits())) .show(ui, |ui| { let mut changed = false;
Large diffs are not rendered by default. Showing the first 50 of 301 lines. Show full diff