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 7b74b6c68f
commit 855062e36b
2 changed files with 4 additions and 1 deletions
@@ -406,6 +406,9 @@ class EditItemUI:
if mesh_props.item_profile == "-":
op = row.operator("bim.name_profile", text="", icon="TAG")
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:
row = cls.layout.row()
@@ -342,7 +342,7 @@ class SelectProfileInProfilesUI(bpy.types.Operator):
props.active_profile_index = profile_index
self.report(
{"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"}