kitgit

tirbofish/dropbear · diff

02a7ea9 · Thribhu K

fix: some standard bug fixes to the editor.

Unverified

diff --git a/crates/eucalyptus-core/src/component.rs b/crates/eucalyptus-core/src/component.rs
index 2f50ed4..6706a44 100644
--- a/crates/eucalyptus-core/src/component.rs
+++ b/crates/eucalyptus-core/src/component.rs
@@ -637,8 +637,8 @@ impl Component for MeshRenderer {
     }
 
     fn update_component(&mut self, world: &World, entity: Entity, _dt: f32, _graphics: Arc<SharedGraphicsContext>) {
-        if let Ok((mesh, transform)) = world.query_one::<(&mut MeshRenderer, &EntityTransform)>(entity).get() {
-            mesh.update(&transform.propagate(&world, entity))
+        if let Ok(transform) = world.query_one::<&EntityTransform>(entity).get() {
+            self.update(&transform.propagate(&world, entity))
         }
     }
 
diff --git a/crates/eucalyptus-editor/src/editor/input.rs b/crates/eucalyptus-editor/src/editor/input.rs
index ef61f48..4359a3b 100644
--- a/crates/eucalyptus-editor/src/editor/input.rs
+++ b/crates/eucalyptus-editor/src/editor/input.rs
@@ -171,9 +171,16 @@ impl Keyboard for Editor {
                                 return;
                             };
 
-                            let components = self
+                            let mut components = self
                                 .component_registry
                                 .extract_all_components(self.world.as_ref(), *entity);
+                            components.retain(|component| {
+                                self.component_registry
+                                    .id_for_component(component.as_ref())
+                                    .and_then(|id| self.component_registry.get_descriptor_by_numeric_id(id))
+                                    .map(|desc| desc.fqtn != "dropbear_engine::entity::EntityTransform")
+                                    .unwrap_or(true)
+                            });
                             let s_entity = SceneEntity {
                                 label: Label::new(label.as_str()),
                                 components,
diff --git a/crates/eucalyptus-editor/src/editor/mod.rs b/crates/eucalyptus-editor/src/editor/mod.rs
index 2e24c3e..a580b3d 100644
--- a/crates/eucalyptus-editor/src/editor/mod.rs
+++ b/crates/eucalyptus-editor/src/editor/mod.rs
@@ -920,9 +920,16 @@ impl Editor {
                                 return;
                             };
 
-                            let components = self
+                            let mut components = self
                                 .component_registry
                                 .extract_all_components(self.world.as_ref(), *entity);
+                            components.retain(|component| {

Large diffs are not rendered by default. Showing the first 50 of 391 lines. Show full diff