Minor fix

This commit is contained in:
Dion Moult
2021-02-07 13:27:23 +11:00
parent 8939d93333
commit 9b8d224aca
4 changed files with 5 additions and 0 deletions
@@ -170,6 +170,8 @@ def add_object(self, context):
if IfcStore.get_file():
bpy.ops.bim.assign_class(obj=obj2.name, ifc_class="IfcDoor")
obj2.location = context.scene.cursor.location
#obj2.data.name = "Model/Body/MODEL_VIEW/" + guid
#obj2.data.use_fake_user = True
@@ -26,6 +26,7 @@ def add_object(self, context):
context.view_layer.active_layer_collection.collection.objects.link(obj)
if IfcStore.get_file():
bpy.ops.bim.assign_class(obj=obj.name, ifc_class="IfcSlab")
obj.location = context.scene.cursor.location
class BIM_OT_add_object(Operator):
@@ -42,6 +42,7 @@ def add_object(self, context):
obj.name = "Wall"
if IfcStore.get_file():
bpy.ops.bim.assign_class(obj=obj.name, ifc_class="IfcWall")
obj.location = context.scene.cursor.location
return obj
@@ -154,6 +154,7 @@ def add_object(self, context):
if IfcStore.get_file():
bpy.ops.bim.assign_class(obj=obj2.name, ifc_class="IfcWindow")
obj2.name = "Window"
obj2.location = context.scene.cursor.location
#obj2.data.name = "Model/Body/MODEL_VIEW/" + guid
#obj2.data.use_fake_user = True