@@ -507,7 +507,7 @@ def get_world(self) -> Optional[World]:
507507 parent_T_connection_expression = obj_T_child ,
508508 )
509509 body_world .merge_world (
510- child_world , child_connection , handle_duplicates = True
510+ child_world , child_connection , assign_unique_name_to_duplicates = True
511511 )
512512
513513 return body_world
@@ -578,7 +578,9 @@ def parse(self) -> World:
578578 world = World (name = house_name )
579579 with world .modify_world ():
580580 world_root = Body (name = PrefixedName (house_name ))
581- world .add_kinematic_structure_entity (world_root , handle_duplicates = True )
581+ world .add_kinematic_structure_entity (
582+ world_root , assign_unique_name_to_duplicates = True
583+ )
582584
583585 self .import_rooms (world , house ["rooms" ])
584586
@@ -607,7 +609,9 @@ def import_rooms(world: World, rooms: List[Dict]):
607609 child = room_world .root ,
608610 parent_T_connection_expression = procthor_room .world_T_room ,
609611 )
610- world .merge_world (room_world , room_connection , handle_duplicates = True )
612+ world .merge_world (
613+ room_world , room_connection , assign_unique_name_to_duplicates = True
614+ )
611615
612616 def import_objects (self , world : World , objects : List [Dict ]):
613617 """
@@ -626,7 +630,9 @@ def import_objects(self, world: World, objects: List[Dict]):
626630 child = obj_world .root ,
627631 parent_T_connection_expression = procthor_object .world_T_obj ,
628632 )
629- world .merge_world (obj_world , obj_connection , handle_duplicates = True )
633+ world .merge_world (
634+ obj_world , obj_connection , assign_unique_name_to_duplicates = True
635+ )
630636
631637 def import_walls_and_doors (
632638 self , world : World , walls : List [Dict ], doors : List [Dict ]
@@ -647,7 +653,9 @@ def import_walls_and_doors(
647653 child = wall_world .root ,
648654 parent_T_connection_expression = procthor_wall .world_T_wall ,
649655 )
650- world .merge_world (wall_world , wall_connection , handle_duplicates = True )
656+ world .merge_world (
657+ wall_world , wall_connection , assign_unique_name_to_duplicates = True
658+ )
651659
652660 @staticmethod
653661 def _build_procthor_wall_from_polygon (
0 commit comments