From c9afa2d05948f7ac86d5d86ad68bf3b81ee39ba7 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 21 Sep 2023 15:44:53 -0700 Subject: [PATCH] only load Block shaped parts --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ef383c85..51957f84 100644 --- a/src/main.rs +++ b/src/main.rs @@ -191,14 +191,16 @@ impl GraphicsData { Some(rbx_dom_weak::types::Variant::Vector3(size)), Some(rbx_dom_weak::types::Variant::Float32(transparency)), Some(rbx_dom_weak::types::Variant::Color3uint8(color3)), + Some(rbx_dom_weak::types::Variant::Enum(shape)), ) = ( object.properties.get("CFrame"), object.properties.get("Size"), object.properties.get("Transparency"), object.properties.get("Color"), + object.properties.get("Shape"),//this will also skip unions ) { - if *transparency==1.0 { + if *transparency==1.0||shape.to_u32()!=1 { continue; } modeldatas[0].instances.push(ModelInstance {