New feature to export point lights (IfcLightSourcePositional) into IFC

This commit is contained in:
Dion Moult
2021-05-27 13:55:44 +10:00
parent 8935a17844
commit afdc1e6679
3 changed files with 27 additions and 0 deletions
@@ -125,6 +125,7 @@ if bpy is not None:
bpy.types.Mesh.BIMMeshProperties = bpy.props.PointerProperty(type=prop.BIMMeshProperties)
bpy.types.Curve.BIMMeshProperties = bpy.props.PointerProperty(type=prop.BIMMeshProperties)
bpy.types.Camera.BIMMeshProperties = bpy.props.PointerProperty(type=prop.BIMMeshProperties)
bpy.types.PointLight.BIMMeshProperties = bpy.props.PointerProperty(type=prop.BIMMeshProperties)
bpy.types.SCENE_PT_unit.append(ui.ifc_units)
for module in modules.values():
@@ -146,6 +147,7 @@ if bpy is not None:
del bpy.types.Mesh.BIMMeshProperties
del bpy.types.Curve.BIMMeshProperties
del bpy.types.Camera.BIMMeshProperties
del bpy.types.PointLight.BIMMeshProperties
bpy.types.SCENE_PT_unit.remove(ui.ifc_units)
for module in reversed(list(modules.values())):
+1
View File
@@ -82,6 +82,7 @@ def getSubcontexts(self, context):
"CoG",
"Profile",
"SurveyPoints",
"Lighting",
]
for subcontext in subcontexts:
subcontexts_enum.append((subcontext, subcontext, ""))