mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Prevent polyline profile from being called by Column Tool
This commit is contained in:
@@ -954,6 +954,7 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
||||
def hotkey_S_A(self):
|
||||
props = bpy.context.scene.BIMModelProperties
|
||||
relating_type_id = AuthoringData.data["relating_type_id_current"]
|
||||
relating_type_class = AuthoringData.data["ifc_class_current"]
|
||||
if relating_type_id is None:
|
||||
self.report({"ERROR"}, "No relating type selected")
|
||||
return
|
||||
@@ -992,7 +993,7 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
||||
):
|
||||
bpy.ops.bim.draw_polyline_slab("INVOKE_DEFAULT")
|
||||
elif (
|
||||
relating_type_id and tool.Model.get_usage_type(tool.Ifc.get().by_id(int(relating_type_id))) == "PROFILE"
|
||||
relating_type_id and tool.Model.get_usage_type(tool.Ifc.get().by_id(int(relating_type_id))) == "PROFILE" and relating_type_class not in {"IfcColumnType"}
|
||||
):
|
||||
bpy.ops.bim.draw_polyline_profile("INVOKE_DEFAULT")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user