mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix bug where group subtypes are imported as the wrong class
This commit is contained in:
@@ -535,7 +535,7 @@ class IfcImporter():
|
||||
if element.GlobalId in self.existing_elements:
|
||||
obj = self.existing_elements[element.GlobalId]
|
||||
else:
|
||||
obj = bpy.data.objects.new(f'IfcGroup/{element.Name}', None)
|
||||
obj = bpy.data.objects.new(f'{element.is_a()}/{element.Name}', None)
|
||||
self.add_element_attributes(element, obj)
|
||||
group_collection.objects.link(obj)
|
||||
self.groups[element.GlobalId] = {
|
||||
|
||||
Reference in New Issue
Block a user