Fix console errors from UI when no object is selected #1

Closed
Andrej wants to merge 1 commits from Andrej730:fix-ui-console-error into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
0cbabdf69e Fix console errors from UI when no object is selected
Example error:
Traceback (most recent call last):
  File "\Blender\4.2\scripts\modules\bpy_types.py", line 1034, in draw_ls
    func(self, context)
  File "\Blender\4.2\extensions\blender_org\curve_tools\__init__.py", line 481, in curve_tools_object_context_menu
    if context.active_object.type == "CURVE":
       ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'type'
2024-10-25 18:00:25 +05:00