only create physics for SOLID brushes
This commit is contained in:
parent
dd4f81a73c
commit
24c01962bf
@ -122,6 +122,9 @@ pub fn convert<'a>(
|
|||||||
|
|
||||||
let brush_mesh_start_idx=world_meshes.len();
|
let brush_mesh_start_idx=world_meshes.len();
|
||||||
for brush in &bsp.brushes{
|
for brush in &bsp.brushes{
|
||||||
|
if !brush.flags.contains(vbsp::BrushFlags::SOLID){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let mesh_result=crate::brush::brush_to_mesh(bsp,brush);
|
let mesh_result=crate::brush::brush_to_mesh(bsp,brush);
|
||||||
match mesh_result{
|
match mesh_result{
|
||||||
Ok(mesh)=>world_meshes.push(mesh),
|
Ok(mesh)=>world_meshes.push(mesh),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user