From 9b5ccb95e74350d4fb3b4bc2c4c9fbf9fb4943a2 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 15 Jan 2023 11:59:15 +0100 Subject: Update dependencies --- src_testbed/objects/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src_testbed/objects') diff --git a/src_testbed/objects/node.rs b/src_testbed/objects/node.rs index ba7a2aa..f4b9015 100644 --- a/src_testbed/objects/node.rs +++ b/src_testbed/objects/node.rs @@ -44,7 +44,7 @@ impl EntityWithGraphics { color: Point3, sensor: bool, ) -> Self { - let entity = commands.spawn().id(); + let entity = commands.spawn_empty().id(); let scale = collider_mesh_scale(shape); let mesh = prefab_meshs @@ -108,7 +108,7 @@ impl EntityWithGraphics { }; let mut entity_commands = commands.entity(entity); - entity_commands.insert_bundle(bundle); + entity_commands.insert(bundle); if sensor { entity_commands.insert(Wireframe); -- cgit