diff --git a/lib/rbx_loader/src/rbx.rs b/lib/rbx_loader/src/rbx.rs index b2214c5..5eccf54 100644 --- a/lib/rbx_loader/src/rbx.rs +++ b/lib/rbx_loader/src/rbx.rs @@ -730,13 +730,22 @@ pub fn convert<'a>( let mut mesh_data=None; let mut physics_data=None; if let Some(rbx_dom_weak::types::Variant::Content(content))=object.properties.get("AssetId"){ - asset_id=Some(content.as_ref()); + let value:&str=content.as_ref(); + if !value.is_empty(){ + asset_id=Some(value); + } } if let Some(rbx_dom_weak::types::Variant::BinaryString(data))=object.properties.get("MeshData"){ - mesh_data=Some(data.as_ref()); + let value:&[u8]=data.as_ref(); + if !value.is_empty(){ + mesh_data=Some(value); + } } if let Some(rbx_dom_weak::types::Variant::BinaryString(data))=object.properties.get("PhysicsData"){ - physics_data=Some(data.as_ref()); + let value:&[u8]=data.as_ref(); + if !value.is_empty(){ + physics_data=Some(value); + } } let part_texture_description=get_texture_description(&mut temp_objects,&mut acquire_render_config_id,dom,object,size); let union_deferred_attributes=UnionDeferredAttributes{