mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-15 13:48:09 +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:
|
if element.GlobalId in self.existing_elements:
|
||||||
obj = self.existing_elements[element.GlobalId]
|
obj = self.existing_elements[element.GlobalId]
|
||||||
else:
|
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)
|
self.add_element_attributes(element, obj)
|
||||||
group_collection.objects.link(obj)
|
group_collection.objects.link(obj)
|
||||||
self.groups[element.GlobalId] = {
|
self.groups[element.GlobalId] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user