Skip to content

Commit 170b98a

Browse files
Moulttheoryshaw
authored andcommitted
Fix IfcOpenShell#5115. Members (e.g. stringers) can now have a stair modifier applied as they may be used to support stairs
1 parent 9697535 commit 170b98a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/blenderbim/blenderbim/bim/module/type/operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def _execute(self, context):
453453
tool.Root,
454454
obj=obj,
455455
predefined_type=predefined_type,
456-
ifc_class="IfcStairFlightType",
456+
ifc_class=ifc_class,
457457
should_add_representation=False,
458458
)
459459
tool.Blender.select_and_activate_single_object(context, obj)

src/blenderbim/blenderbim/tool/blender.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,9 @@ def is_eligible_for_railing_modifier(cls, obj):
780780

781781
@classmethod
782782
def is_eligible_for_stair_modifier(cls, obj):
783-
return tool.Blender.is_object_an_ifc_class(obj, ("IfcStairFlight", "IfcStairFlightType"))
783+
return tool.Blender.is_object_an_ifc_class(
784+
obj, ("IfcStairFlight", "IfcStairFlightType", "IfcMember", "IfcMemberType")
785+
)
784786

785787
@classmethod
786788
def is_eligible_for_window_modifier(cls, obj):

0 commit comments

Comments
 (0)