fix comment
This commit is contained in:
parent
b32a9cc070
commit
d1f1a67c89
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user