Blender Git Loki
Git Commits -> Revision d696363
Revision d696363 by Thomas Beck (master) April 28, 2017, 21:44 (GMT) |
Implementation of custom python entries in all right click menus Hi Guys, as one of my clients needs the possibility to have custom menu entries in the general right click menu (all over Blender: in the node editor, properties, toolbars,..) I talked with Campbell about expanding our hard coded menu a bit. This is the outcome. As I only need those two, I support currently a button_prop and a button_pointer. {F540397} I tested the changes with a custom script where I added a custom entry and executed an operator on click - it seems to work exactly how it's intended to. The script: {F540435} As I'm not too experienced in rna stuff I would really appreciate any review. Thanks very much Campbell for his open ears & help on this issue! Reviewers: campbellbarton, mont29 Reviewed By: campbellbarton, mont29 Subscribers: sybren, mont29 Tags: #addons Differential Revision: https://developer.blender.org/D2612 |
Commit Details:
Full Hash: d6963630dc64e94b4f2da21d43c1985f77be88aa
Parent Commit: af3f7db
Lines Changed: +100, -1
1 Added Path:
/doc/python_api/examples/bpy.types.Menu.4.py (+81, -0) (View)
1 Modified Path:
/source/blender/editors/interface/interface_handlers.c (+19, -1) (Diff)