diff --git a/lib/bsp_loader/src/brush.rs b/lib/bsp_loader/src/brush.rs index fab9ac4..f0797a2 100644 --- a/lib/bsp_loader/src/brush.rs +++ b/lib/bsp_loader/src/brush.rs @@ -237,8 +237,8 @@ pub fn brush_to_mesh(bsp:&vbsp::Bsp,brush:&vbsp::Brush)->Result<model::Mesh,Brus let sides_range=brush_start_idx..brush_start_idx+brush.num_brush_sides as usize; let sides=bsp.brush_sides.get(sides_range).ok_or(BrushToMeshError::SliceBrushSides)?; let face_list=sides.iter().map(|side|{ - // The so-called tumor brushes are actually visleaf hints - // used to inform the bsp of how to paritition space + // The so-called tumor brushes have TRIGGER bit set + // but also ignore visleaf hint and skip sides const TUMOR:vbsp::TextureFlags=vbsp::TextureFlags::HINT.union(vbsp::TextureFlags::SKIP).union(vbsp::TextureFlags::TRIGGER); if let Some(texture_info)=bsp.textures_info.get(side.texture_info as usize){ if texture_info.flags.intersects(TUMOR){