@@ -12,7 +12,6 @@ signal build_failed()
12
12
13
13
signal unwrap_uv2_complete ()
14
14
15
- var print_profiling_data := false
16
15
var map_file := "" setget set_map_file
17
16
var inverse_scale_factor := 16.0
18
17
var entity_fgd := preload ("res://addons/qodot/game-definitions/fgd/qodot_fgd.tres" )
@@ -27,6 +26,8 @@ var texture_wads := [] setget set_texture_wads
27
26
var material_file_extension := ".tres"
28
27
var default_material := SpatialMaterial .new ()
29
28
var uv_unwrap_texel_size := 1.0
29
+ var print_profiling_data := false
30
+ var use_trenchbroom_group_hierarchy := false
30
31
var tree_attach_batch_size := 16
31
32
var set_owner_batch_size := 16
32
33
@@ -109,6 +110,7 @@ func _get_property_list() -> Array:
109
110
QodotUtil .property_dict ('uv_unwrap_texel_size' , TYPE_REAL ),
110
111
QodotUtil .category_dict ('Build' ),
111
112
QodotUtil .property_dict ('print_profiling_data' , TYPE_BOOL ),
113
+ QodotUtil .property_dict ('use_trenchbroom_group_hierarchy' , TYPE_BOOL ),
112
114
QodotUtil .property_dict ('tree_attach_batch_size' , TYPE_INT ),
113
115
QodotUtil .property_dict ('set_owner_batch_size' , TYPE_INT )
114
116
]
@@ -411,7 +413,7 @@ func build_entity_nodes() -> Array:
411
413
if entity_definition .spawn_type == QodotFGDSolidClass .SpawnType .MERGE_WORLDSPAWN :
412
414
entity_nodes .append (null )
413
415
continue
414
- elif entity_definition .spawn_type == QodotFGDSolidClass .SpawnType .GROUP :
416
+ elif use_trenchbroom_group_hierarchy and entity_definition .spawn_type == QodotFGDSolidClass .SpawnType .GROUP :
415
417
should_add_child = false
416
418
if entity_definition .node_class != "" :
417
419
node = ClassDB .instance (entity_definition .node_class )
@@ -454,6 +456,9 @@ func build_worldspawn_layer_nodes() -> Array:
454
456
return worldspawn_layer_nodes
455
457
456
458
func resolve_group_hierarchy () -> void :
459
+ if not use_trenchbroom_group_hierarchy :
460
+ return
461
+
457
462
var group_entities := {}
458
463
var owner_entities := {}
459
464
0 commit comments