poll context is incorrect! #22

Closed
opened 2024-09-01 13:43:11 +02:00 by Ayoub ibn Muhammad · 3 comments

Hi Demeter,
I want to add this to the review in the extension website but it seems that it is not possible!
same as the CTRL+SPACEBAR (without drag) bug, the ALT + C -> New Camera from view (8) in POSE MODE raises an exception with the following error:

Python: Traceback (most recent call last):
  File "C:\Users\cl3m3c7\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\viewport_pie_menus\pie_camera.py", line 175, in execute
    bpy.ops.object.camera_add()
  File "C:\blender\blender-4.2\4.2\scripts\modules\bpy\ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Operator bpy.ops.object.camera_add.poll() failed, context is incorrect

have a nice day!

Hi Demeter, I want to add this to the review in the extension website but it seems that it is not possible! same as the CTRL+SPACEBAR (without drag) bug, the ALT + C -> New Camera from view (8) in **_POSE MODE_** raises an exception with the following error: ```python Python: Traceback (most recent call last): File "C:\Users\cl3m3c7\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\viewport_pie_menus\pie_camera.py", line 175, in execute bpy.ops.object.camera_add() File "C:\blender\blender-4.2\4.2\scripts\modules\bpy\ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Operator bpy.ops.object.camera_add.poll() failed, context is incorrect ``` have a nice day!
Collaborator

The review system should not be used for bug reports, it's much better that you posted this here. Thanks a lot for the report. Will be fixed in next version.

The review system should not be used for bug reports, it's much better that you posted this here. Thanks a lot for the report. Will be fixed in next version.

x in the outliner -> purge orphans with no 3d view, I get the following exception:

Python: Traceback (most recent call last):
  File "C:\Users\cl3m3c7\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\viewport_pie_menus\pie_relationship_delete.py", line 126, in execute
    return self.better_purge(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cl3m3c7\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\viewport_pie_menus\pie_relationship_delete.py", line 139, in better_purge
    assert False, "Error: This operation requires a 3D view to be present."
AssertionError: Error: This operation requires a 3D view to be present.

reopened this since it has the same exception!

CC @Mets

x in the outliner -> purge orphans with no 3d view, I get the following exception: ```python Python: Traceback (most recent call last): File "C:\Users\cl3m3c7\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\viewport_pie_menus\pie_relationship_delete.py", line 126, in execute return self.better_purge(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\cl3m3c7\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\viewport_pie_menus\pie_relationship_delete.py", line 139, in better_purge assert False, "Error: This operation requires a 3D view to be present." AssertionError: Error: This operation requires a 3D view to be present. ``` reopened this since it has the same exception! CC @Mets
Collaborator

But it's a completely different exception! :D

But it's a completely different exception! :D
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: extensions/space_view3d_pie_menus#22
No description provided.