forked from StrafesNET/strafe-client
panic when roblox data is invalid
This commit is contained in:
parent
6ff2620bbc
commit
616b09a857
@ -169,14 +169,10 @@ pub fn generate_indexed_models_roblox(dom:rbx_dom_weak::WeakDom) -> Result<(Inde
|
|||||||
2=>primitives::Primitives::Cylinder,
|
2=>primitives::Primitives::Cylinder,
|
||||||
3=>primitives::Primitives::Wedge,
|
3=>primitives::Primitives::Wedge,
|
||||||
4=>primitives::Primitives::CornerWedge,
|
4=>primitives::Primitives::CornerWedge,
|
||||||
_=>{
|
_=>panic!("Funky roblox PartType={};",shape.to_u32()),
|
||||||
println!("Funky roblox PartType={}; defaulting to cube",shape.to_u32());
|
|
||||||
primitives::Primitives::Cube
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
println!("Part has no Shape! defaulting to cube");
|
panic!("Part has no Shape!");
|
||||||
primitives::Primitives::Cube
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"WedgePart"=>primitives::Primitives::Wedge,
|
"WedgePart"=>primitives::Primitives::Wedge,
|
||||||
|
Loading…
Reference in New Issue
Block a user