From 47ee667f0610cbb0e40bdb88d3ca21f96113e22e Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 28 Jul 2023 17:27:54 +1000 Subject: [PATCH] Fix #3517. Fix bug where edit arbitrary profile button doesn't show if your profile has voids. --- src/blenderbim/blenderbim/bim/module/profile/ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/profile/ui.py b/src/blenderbim/blenderbim/bim/module/profile/ui.py index 5f4b998c98..6515fdcc05 100644 --- a/src/blenderbim/blenderbim/bim/module/profile/ui.py +++ b/src/blenderbim/blenderbim/bim/module/profile/ui.py @@ -79,7 +79,10 @@ class BIM_PT_profiles(Panel): self.props, "active_profile_index", ) - if active_profile and active_profile.ifc_class == "IfcArbitraryClosedProfileDef": + if active_profile and active_profile.ifc_class in ( + "IfcArbitraryClosedProfileDef", + "IfcArbitraryProfileDefWithVoids", + ): if self.props.active_arbitrary_profile_id: row = self.layout.row(align=True) row.operator("bim.edit_arbitrary_profile", text="Save Arbitrary Profile", icon="CHECKMARK")