Active Profile's inverse relationships count is now displayed in the profiles editor

This commit is contained in:
Gorgious56
2023-08-17 15:44:37 +02:00
parent 2dcfcf9708
commit 90e6400115
@@ -91,6 +91,10 @@ class BIM_PT_profiles(Panel):
row = self.layout.row()
row.operator("bim.enable_editing_arbitrary_profile", text="Edit Arbitrary Profile", icon="GREASEPENCIL")
profile_entity = tool.Ifc.get().by_id(active_profile.ifc_definition_id)
users_of_profile = tool.Ifc.get().get_total_inverses(profile_entity)
self.layout.label(icon="INFO", text=f"Profile has {users_of_profile} inverse relationship(s) in project")
if self.props.active_profile_id:
self.draw_editable_ui(context)