Fix #3517. Fix bug where edit arbitrary profile button doesn't show if your profile has voids.

This commit is contained in:
Dion Moult
2023-07-28 17:27:54 +10:00
parent 7804c9ea80
commit 47ee667f06
@@ -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")