they actually don't maybe
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user