mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Error editing roof profile #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'
This commit is contained in:
@@ -429,6 +429,15 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
bpy.ops.bim.enable_editing_railing_path()
|
bpy.ops.bim.enable_editing_railing_path()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
elif (
|
||||||
|
(RoofData.is_loaded or not RoofData.load())
|
||||||
|
and RoofData.data["parameters"]
|
||||||
|
and not bpy.context.active_object.BIMRoofProperties.is_editing_path
|
||||||
|
):
|
||||||
|
# undo the unselection done above because roof has no usage type
|
||||||
|
bpy.ops.bim.enable_editing_roof_path()
|
||||||
|
return
|
||||||
|
|
||||||
selected_usages = {}
|
selected_usages = {}
|
||||||
for obj in bpy.context.selected_objects:
|
for obj in bpy.context.selected_objects:
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
@@ -483,15 +492,6 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
[o.select_set(False) for o in selected_usages.get("LAYER2", [])]
|
[o.select_set(False) for o in selected_usages.get("LAYER2", [])]
|
||||||
bpy.ops.bim.extend_profile(join_type="T")
|
bpy.ops.bim.extend_profile(join_type="T")
|
||||||
|
|
||||||
elif (
|
|
||||||
(RoofData.is_loaded or not RoofData.load())
|
|
||||||
and RoofData.data["parameters"]
|
|
||||||
and not bpy.context.active_object.BIMRoofProperties.is_editing_path
|
|
||||||
):
|
|
||||||
# undo the unselection done above because roof has no usage type
|
|
||||||
bpy.context.object.select_set(True)
|
|
||||||
bpy.ops.bim.enable_editing_roof_path()
|
|
||||||
|
|
||||||
elif DecoratorData.get_ifc_text_data(bpy.context.object):
|
elif DecoratorData.get_ifc_text_data(bpy.context.object):
|
||||||
bpy.context.object.select_set(True)
|
bpy.context.object.select_set(True)
|
||||||
bpy.ops.bim.edit_text_popup()
|
bpy.ops.bim.edit_text_popup()
|
||||||
|
|||||||
Reference in New Issue
Block a user