File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,4 +14,6 @@ func _entity_setup(entity: VMFEntity):
1414
1515 $ MeshInstance3D .cast_shadow = entity .data .get ("disableshadows" , 0 ) == 0 ;
1616 $ MeshInstance3D .set_mesh (mesh );
17- $ MeshInstance3D/StaticBody3D/CollisionShape3D .shape = $ MeshInstance3D .mesh .create_trimesh_shape ();
17+
18+ if config .import .generate_collision :
19+ $ MeshInstance3D/StaticBody3D/CollisionShape3D .shape = $ MeshInstance3D .mesh .create_trimesh_shape ();
Original file line number Diff line number Diff line change @@ -120,8 +120,9 @@ func import_geometry() -> void:
120120
121121 geometry_mesh .mesh = mesh ;
122122
123- VMFTool .generate_collisions (geometry_mesh , default_physics_mask );
124- save_collision_file ();
123+ if VMFConfig .import .generate_collision :
124+ VMFTool .generate_collisions (geometry_mesh , default_physics_mask );
125+ save_collision_file ();
125126
126127 if not get_meta ("instance" , false ):
127128 generate_navmesh (geometry_mesh );
You can’t perform that action at this time.
0 commit comments