From 887a1be3d8d1229afae5ecd2e2afa73c71f0fd5b Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sat, 8 Nov 2025 21:08:36 -0500 Subject: [PATCH] fix: update model part names for consistency in BridgeState reification --- bridge/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bridge/src/lib.rs b/bridge/src/lib.rs index 102f7cf..c06e009 100644 --- a/bridge/src/lib.rs +++ b/bridge/src/lib.rs @@ -10,7 +10,7 @@ use glam::Mat4; use stardust_xr_asteroids as ast; // alias for brevity use stardust_xr_asteroids::{ client::ClientState, - elements::{PlaySpace, Model}, + elements::{PlaySpace, Model, Lines}, Migrate, Reify, }; use stardust_xr_asteroids::{CustomElement, Transformable, Projector, Context}; @@ -107,7 +107,7 @@ impl Reify for BridgeState { Some(( *id, Model::namespaced("fusion", "tex_cube") - .part(ModelPart::new("").mat_param("color", MaterialParameter::Color(node_color))) + .part(ModelPart::new("Cube").mat_param("color", MaterialParameter::Color(node_color))) .pos([trans.x, trans.y, trans.z]) .rot([rot.x, rot.y, rot.z, rot.w]) .scl([vis_scale.x, vis_scale.y, vis_scale.z]) @@ -120,7 +120,7 @@ impl Reify for BridgeState { Some(( *id, Model::namespaced("fusion", "tex_cube") - .part(ModelPart::new("").mat_param("color", MaterialParameter::Color(node_color))) + .part(ModelPart::new("Cube").mat_param("color", MaterialParameter::Color(node_color))) .pos([trans.x, trans.y, trans.z]) .rot([rot.x, rot.y, rot.z, rot.w]) .scl([vis_scale.x, vis_scale.y, vis_scale.z]) @@ -132,7 +132,7 @@ impl Reify for BridgeState { Some(( *id, Model::namespaced("fusion", "gyro") - .part(ModelPart::new("").mat_param("color", MaterialParameter::Color(node_color))) + .part(ModelPart::new("Cube").mat_param("color", MaterialParameter::Color(node_color))) .pos([trans.x, trans.y, trans.z]) .rot([rot.x, rot.y, rot.z, rot.w]) .scl([vis_scale.x, vis_scale.y, vis_scale.z]) @@ -145,7 +145,7 @@ impl Reify for BridgeState { Some(( *id, Model::namespaced("fusion", "tex_cube") - .part(ModelPart::new("").mat_param("color", MaterialParameter::Color(default_color))) + .part(ModelPart::new("Cube").mat_param("color", MaterialParameter::Color(node_color))) .pos([trans.x, trans.y, trans.z]) .rot([rot.x, rot.y, rot.z, rot.w]) .scl([vis_scale.x, vis_scale.y, vis_scale.z])