Quick to select profile from BIM Tool in Profile UI

Example - https://imgur.com/a/tJdQUGq
This commit is contained in:
Andrej730
2025-03-03 11:41:16 +05:00
parent 68f98d457e
commit 8a44c0d545
2 changed files with 4 additions and 1 deletions
@@ -406,6 +406,9 @@ class EditItemUI:
if mesh_props.item_profile == "-": if mesh_props.item_profile == "-":
op = row.operator("bim.name_profile", text="", icon="TAG") op = row.operator("bim.name_profile", text="", icon="TAG")
op.extrusion_item_obj = obj.name op.extrusion_item_obj = obj.name
else:
op = row.operator("bim.profiles_ui_select", icon="ZOOM_SELECTED", text="")
op.profile_id = int(mesh_props.item_profile)
for item_attribute in mesh_props.item_attributes: for item_attribute in mesh_props.item_attributes:
row = cls.layout.row() row = cls.layout.row()
@@ -342,7 +342,7 @@ class SelectProfileInProfilesUI(bpy.types.Operator):
props.active_profile_index = profile_index props.active_profile_index = profile_index
self.report( self.report(
{"INFO"}, {"INFO"},
f"Profile '{profile.Name or 'Unnamed'}' is selected in Profiles UI.", f"Profile '{profile.ProfileName or 'Unnamed'}' is selected in Profiles UI.",
) )
return {"FINISHED"} return {"FINISHED"}