mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
fix failed context for hotkey Shitf+C #3676
This commit is contained in:
@@ -568,7 +568,8 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
if not bpy.context.selected_objects:
|
if not bpy.context.selected_objects:
|
||||||
return
|
return
|
||||||
if self.active_material_usage == "LAYER2":
|
if self.active_material_usage == "LAYER2":
|
||||||
bpy.ops.bim.align_wall(align_type="CENTERLINE")
|
if bpy.ops.bim.align_wall.poll():
|
||||||
|
bpy.ops.bim.align_wall(align_type="CENTERLINE")
|
||||||
else:
|
else:
|
||||||
bpy.ops.bim.align_product(align_type="CENTERLINE")
|
bpy.ops.bim.align_product(align_type="CENTERLINE")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user