Skip to content

[BUG] Can't create sketch using Object Mode menu #521

@comex

Description

@comex

Contact Details

comexk@gmail.com

Description

If I do the following:

  • (in top menu) File -> New -> General
  • (in Object Mode menu) Add -> Sketch
  • Click on any axis
    I get the following error.

This does not occur if I use Sketcher -> Add Sketch on the sidebar.

Python: Traceback (most recent call last):
  File "/Users/comex/Library/Application Support/Blender/4.4/extensions/user_default/CAD_Sketcher/stateful_operator/logic.py", line 512, in modal
    return self.evaluate_state(context, event, event_triggered)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/comex/Library/Application Support/Blender/4.4/extensions/user_default/CAD_Sketcher/stateful_operator/logic.py", line 587, in evaluate_state
    succeede = self.run_op(context)
               ^^^^^^^^^^^^^^^^^^^^
  File "/Users/comex/Library/Application Support/Blender/4.4/extensions/user_default/CAD_Sketcher/stateful_operator/logic.py", line 366, in run_op
    retval = self.main(context)
             ^^^^^^^^^^^^^^^^^^
  File "/Users/comex/Library/Application Support/Blender/4.4/extensions/user_default/CAD_Sketcher/operators/add_sketch.py", line 59, in main
    activate_sketch(context, sketch.slvs_index, self)
  File "/Users/comex/Library/Application Support/Blender/4.4/extensions/user_default/CAD_Sketcher/operators/utilities.py", line 130, in activate_sketch
    bpy.ops.view3d.slvs_align_view(sketch_index=index)
  File "/Applications/Blender.app/Contents/Resources/4.4/scripts/modules/bpy/ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
  File "/Users/comex/Library/Application Support/Blender/4.4/extensions/user_default/CAD_Sketcher/operators/align_view.py", line 54, in execute
    START_LOCATION = REGION3D.view_location.copy()
                     ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'view_location'
Location: /Applications/Blender.app/Contents/Resources/4.4/scripts/modules/bpy/ops.py:109

Addon Version

3fb273c

Blender Version

4.4.3

What platform are you running on?

Mac OSX

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions