mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Minor fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user