From fd82fa62032e97596ca65f655e9479b471871c06 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Wed, 25 Feb 2026 13:17:47 -0800 Subject: [PATCH] reject meshes with zero vertices --- lib/rbx_loader/src/mesh.rs | 4 ++++ lib/rbx_loader/src/union.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/rbx_loader/src/mesh.rs b/lib/rbx_loader/src/mesh.rs index 765ef8a0..ac7df172 100644 --- a/lib/rbx_loader/src/mesh.rs +++ b/lib/rbx_loader/src/mesh.rs @@ -9,6 +9,7 @@ use crate::loader::MeshWithSize; #[derive(Debug)] pub enum Error{ + ZeroVertices, RbxMesh(rbx_mesh::mesh::Error) } impl std::fmt::Display for Error{ @@ -143,5 +144,8 @@ pub fn convert(roblox_mesh_bytes:crate::data::RobloxMeshBytes)->Result