Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit 0252701

Browse files
committed
Error editing roof profile IfcOpenShell#3357
it was assuming it's a slab and was giving errors trying to start editing slab profile File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\model\slab.py", line 618, in _execute if extrusion.Position: AttributeError: 'NoneType' object has no attribute 'Position'
1 parent 6fed9bf commit 0252701

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/blenderbim/blenderbim/bim/module/model/workspace.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,15 @@ def hotkey_S_E(self):
429429
bpy.ops.bim.enable_editing_railing_path()
430430
return
431431

432+
elif (
433+
(RoofData.is_loaded or not RoofData.load())
434+
and RoofData.data["parameters"]
435+
and not bpy.context.active_object.BIMRoofProperties.is_editing_path
436+
):
437+
# undo the unselection done above because roof has no usage type
438+
bpy.ops.bim.enable_editing_roof_path()
439+
return
440+
432441
selected_usages = {}
433442
for obj in bpy.context.selected_objects:
434443
element = tool.Ifc.get_entity(obj)
@@ -483,15 +492,6 @@ def hotkey_S_E(self):
483492
[o.select_set(False) for o in selected_usages.get("LAYER2", [])]
484493
bpy.ops.bim.extend_profile(join_type="T")
485494

486-
elif (
487-
(RoofData.is_loaded or not RoofData.load())
488-
and RoofData.data["parameters"]
489-
and not bpy.context.active_object.BIMRoofProperties.is_editing_path
490-
):
491-
# undo the unselection done above because roof has no usage type
492-
bpy.context.object.select_set(True)
493-
bpy.ops.bim.enable_editing_roof_path()
494-
495495
elif DecoratorData.get_ifc_text_data(bpy.context.object):
496496
bpy.context.object.select_set(True)
497497
bpy.ops.bim.edit_text_popup()

0 commit comments

Comments
 (0)