mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 03:30:51 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user