mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
Instead of storing a static asset item tree for every possible context, store a tree of the registered operator types and check which should be visible when drawing using the actual poll function rather than re- implementing its logic. Also rewrite the registration process to make it easier to follow and add a more obvious early return when there are no changes to the node tools that must be registered. By construction this changes drawing behavior for duplicate idnames. Now, when drawing the tool menus, don't draw multiple tools with the same operator idname. This resolves #158802. Overall this goes beyond a minimal fix for that report, but I'm much happier with the state of the code now. Pull Request: https://projects.blender.org/blender/blender/pulls/158857 |
||
|---|---|---|
| .. | ||
| gdb | ||
| blender_gdb_extension.py | ||