Post #5177: I wonder why I didn’t notice… The dict-based context override arguments had long

📋 Metadata

🏷️ Tags

v1-20-x pie-menu context-override advanced unsolved

  • Pie Menu Editor
  • Popup Dialog Editor
  • wm.pmi_edit_auto
  • pme.popup_area

💬 Content

I wonder why I didn’t notice… The dict-based context override arguments had long been removed.

https://developer.blender.org/docs/release_notes/4.0/python_api/#blender-operators-bpyops

For now, in Blender 4.0 and later, if you encounter the error message “1-2 args execution context is supported”, you can assume that the context override isn’t working properly.
However, I haven’t encountered problems as critical as I had anticipated…

Anyway, I’ve fixed the wm.pmi_edit_auto. While it was possible to work around the issue by simply setting ctx to None, I went ahead and refactored all the areas of concern. Please test it.

ed_base.py (75.6 KB) Edit: Add TODO

As for pme.popup_area, please bear with me. While it seems completely broken in 4.0 and later due to the context override changes, several options weren’t functioning even before that. (To be honest, this kind of functionality will likely be implemented in Zen Dock in the future)


To all members: If you’re not experiencing any particular issues, there’s no need to apply this fix. I will investigate how many context override-related problems remain in PME, fix them, and then officially share the updates. roaoao, come back…!


❤️ 9 likes


🔗 View on Blender Artists