You can now edit psets of profiles

This commit is contained in:
Dion Moult
2021-08-14 13:01:22 +10:00
parent 8300868a9b
commit 3e2b66ef2f
7 changed files with 85 additions and 1 deletions
@@ -22,6 +22,8 @@ def get_pset_props(context, obj, obj_type):
return context.scene.TaskPsetProperties
elif obj_type == "Resource":
return context.scene.ResourcePsetProperties
elif obj_type == "Profile":
return context.scene.ProfilePsetProperties
def get_pset_obj_ifc_definition_id(context, obj, obj_type):
@@ -39,6 +41,11 @@ def get_pset_obj_ifc_definition_id(context, obj, obj_type):
return context.scene.BIMResourceTreeProperties.resources[
context.scene.BIMResourceProperties.active_resource_index
].ifc_definition_id
elif obj_type == "Profile":
return context.scene.BIMProfileProperties.profiles[
context.scene.BIMProfileProperties.active_profile_index
].ifc_definition_id
class TogglePsetExpansion(bpy.types.Operator):