mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
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:
@@ -441,7 +441,7 @@ class AddType(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
tool.Root,
|
tool.Root,
|
||||||
obj=obj,
|
obj=obj,
|
||||||
predefined_type=predefined_type,
|
predefined_type=predefined_type,
|
||||||
ifc_class="IfcStairFlightType",
|
ifc_class=ifc_class,
|
||||||
should_add_representation=False,
|
should_add_representation=False,
|
||||||
)
|
)
|
||||||
tool.Blender.select_and_activate_single_object(context, obj)
|
tool.Blender.select_and_activate_single_object(context, obj)
|
||||||
|
|||||||
@@ -822,7 +822,9 @@ class Blender(blenderbim.core.tool.Blender):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_eligible_for_stair_modifier(cls, obj):
|
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
|
@classmethod
|
||||||
def is_eligible_for_window_modifier(cls, obj):
|
def is_eligible_for_window_modifier(cls, obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user