Fixed bug using tab editing arbitrary profile

It was assuming we were editing extrusion profile and therefore was giving errors.
This commit is contained in:
Andrej730
2023-09-14 11:06:21 +05:00
parent 66e07c2f69
commit 42e683375c
@@ -1549,6 +1549,9 @@ class OverrideModeSetObject(bpy.types.Operator):
bpy.ops.bim.finish_editing_roof_path()
elif tool.Model.get_usage_type(element) == "PROFILE":
bpy.ops.bim.edit_extrusion_axis()
# if in the process of editing arbitrary profile
elif context.scene.BIMProfileProperties.active_arbitrary_profile_id:
bpy.ops.bim.edit_arbitrary_profile()
else:
bpy.ops.bim.edit_extrusion_profile()
return self.execute(context)