mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Minor fix
This commit is contained in:
@@ -42,6 +42,7 @@ def add_object(self, context):
|
|||||||
edges.pop()
|
edges.pop()
|
||||||
faces = []
|
faces = []
|
||||||
mesh = bpy.data.meshes.new(name='Plan/Annotation/PLAN_VIEW/' + guid)
|
mesh = bpy.data.meshes.new(name='Plan/Annotation/PLAN_VIEW/' + guid)
|
||||||
|
mesh.use_fake_user = True
|
||||||
mesh.from_pydata(verts, edges, faces)
|
mesh.from_pydata(verts, edges, faces)
|
||||||
|
|
||||||
# Door lining profile
|
# Door lining profile
|
||||||
@@ -134,6 +135,7 @@ def add_object(self, context):
|
|||||||
attribute.name = 'PredefinedType'
|
attribute.name = 'PredefinedType'
|
||||||
attribute.string_value = 'DOOR'
|
attribute.string_value = 'DOOR'
|
||||||
obj2.data.name = 'Model/Body/MODEL_VIEW/' + guid
|
obj2.data.name = 'Model/Body/MODEL_VIEW/' + guid
|
||||||
|
obj2.data.use_fake_user = True
|
||||||
|
|
||||||
rep = obj2.BIMObjectProperties.representation_contexts.add()
|
rep = obj2.BIMObjectProperties.representation_contexts.add()
|
||||||
rep.context = 'Model'
|
rep.context = 'Model'
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ def add_object(self, context):
|
|||||||
]
|
]
|
||||||
faces = []
|
faces = []
|
||||||
mesh = bpy.data.meshes.new(name='Plan/Annotation/PLAN_VIEW/' + guid)
|
mesh = bpy.data.meshes.new(name='Plan/Annotation/PLAN_VIEW/' + guid)
|
||||||
|
mesh.use_fake_user = True
|
||||||
mesh.from_pydata(verts, edges, faces)
|
mesh.from_pydata(verts, edges, faces)
|
||||||
|
|
||||||
# Window lining profile
|
# Window lining profile
|
||||||
@@ -130,6 +131,7 @@ def add_object(self, context):
|
|||||||
attribute.name = 'PredefinedType'
|
attribute.name = 'PredefinedType'
|
||||||
attribute.string_value = 'WINDOW'
|
attribute.string_value = 'WINDOW'
|
||||||
obj2.data.name = 'Model/Body/MODEL_VIEW/' + guid
|
obj2.data.name = 'Model/Body/MODEL_VIEW/' + guid
|
||||||
|
obj2.data.use_fake_user = True
|
||||||
|
|
||||||
rep = obj2.BIMObjectProperties.representation_contexts.add()
|
rep = obj2.BIMObjectProperties.representation_contexts.add()
|
||||||
rep.context = 'Model'
|
rep.context = 'Model'
|
||||||
|
|||||||
Reference in New Issue
Block a user