Minor fix

This commit is contained in:
Dion Moult
2020-08-20 23:37:03 +10:00
parent 99a76b5a6e
commit f64e0c9acc
2 changed files with 4 additions and 0 deletions
@@ -42,6 +42,7 @@ def add_object(self, context):
edges.pop()
faces = []
mesh = bpy.data.meshes.new(name='Plan/Annotation/PLAN_VIEW/' + guid)
mesh.use_fake_user = True
mesh.from_pydata(verts, edges, faces)
# Door lining profile
@@ -134,6 +135,7 @@ def add_object(self, context):
attribute.name = 'PredefinedType'
attribute.string_value = 'DOOR'
obj2.data.name = 'Model/Body/MODEL_VIEW/' + guid
obj2.data.use_fake_user = True
rep = obj2.BIMObjectProperties.representation_contexts.add()
rep.context = 'Model'
@@ -39,6 +39,7 @@ def add_object(self, context):
]
faces = []
mesh = bpy.data.meshes.new(name='Plan/Annotation/PLAN_VIEW/' + guid)
mesh.use_fake_user = True
mesh.from_pydata(verts, edges, faces)
# Window lining profile
@@ -130,6 +131,7 @@ def add_object(self, context):
attribute.name = 'PredefinedType'
attribute.string_value = 'WINDOW'
obj2.data.name = 'Model/Body/MODEL_VIEW/' + guid
obj2.data.use_fake_user = True
rep = obj2.BIMObjectProperties.representation_contexts.add()
rep.context = 'Model'