WIP partial port of IfcPerson to partial editing. New feature too! See message. See #1222.

* Previously, IfcPerson was not imported. Now it is! Funky.
This commit is contained in:
Dion Moult
2021-01-08 16:27:19 +11:00
parent 53de93e582
commit be2ea335f5
14 changed files with 249 additions and 69 deletions
@@ -41,7 +41,7 @@ class AddStyle(bpy.types.Operator):
def execute(self, context):
self.file = IfcStore.get_file()
material = bpy.data.objects.get(self.material) if self.material else bpy.context.active_object.active_material
material = bpy.data.materials.get(self.material) if self.material else bpy.context.active_object.active_material
settings = get_colour_settings(material)
settings["Name"] = material.name
settings["external_definition"] = None # TODO: Implement. See #1222