Fix #5115. Members (e.g. stringers) can now have a stair modifier applied as they may be used to support stairs

This commit is contained in:
Dion Moult
2024-08-02 16:34:30 +10:00
parent 321bb7178d
commit 90c6218210
2 changed files with 4 additions and 2 deletions
@@ -441,7 +441,7 @@ class AddType(bpy.types.Operator, tool.Ifc.Operator):
tool.Root,
obj=obj,
predefined_type=predefined_type,
ifc_class="IfcStairFlightType",
ifc_class=ifc_class,
should_add_representation=False,
)
tool.Blender.select_and_activate_single_object(context, obj)
+3 -1
View File
@@ -822,7 +822,9 @@ class Blender(blenderbim.core.tool.Blender):
@classmethod
def is_eligible_for_stair_modifier(cls, obj):
return tool.Blender.is_object_an_ifc_class(obj, ("IfcStairFlight", "IfcStairFlightType"))
return tool.Blender.is_object_an_ifc_class(
obj, ("IfcStairFlight", "IfcStairFlightType", "IfcMember", "IfcMemberType")
)
@classmethod
def is_eligible_for_window_modifier(cls, obj):