they actually don't maybe

This commit is contained in:
Quaternions 2025-02-26 10:35:33 -08:00
parent 5749d76354
commit 51c24b00b7

@ -239,10 +239,9 @@ pub fn brush_to_mesh(bsp:&vbsp::Bsp,brush:&vbsp::Brush)->Result<model::Mesh,Brus
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
const TUMOR:vbsp::TextureFlags=vbsp::TextureFlags::HINT.union(vbsp::TextureFlags::SKIP);
if let Some(texture_info)=bsp.textures_info.get(side.texture_info as usize){
let texture_info=vbsp::Handle::new(bsp,texture_info);
// I cannot believe they actually use the texture to inform behaviour
if matches!(texture_info.name().to_lowercase().as_str(),"tools/toolshint"|"tools/toolsskip"){
if texture_info.flags.intersects(TUMOR){
return None;
}
}