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
@@ -578,26 +578,6 @@ class RemoveObjectConstraint(bpy.types.Operator):
return {"FINISHED"}
class AddPerson(bpy.types.Operator):
bl_idname = "bim.add_person"
bl_label = "Add Person"
def execute(self, context):
new = bpy.context.scene.BIMProperties.people.add()
new.name = "New Person"
return {"FINISHED"}
class RemovePerson(bpy.types.Operator):
bl_idname = "bim.remove_person"
bl_label = "Remove Person"
index: bpy.props.IntProperty()
def execute(self, context):
bpy.context.scene.BIMProperties.people.remove(self.index)
return {"FINISHED"}
class AddPersonAddress(bpy.types.Operator):
bl_idname = "bim.add_person_address"
bl_label = "Add Person Address"