Blender Git Loki

Git Commits -> Revision 01a5d3f

March 24, 2021, 12:54 (GMT)
Support passing operator to invoke on activating or dragging an item

An annoyance is that the operator names have to be passed to the template which
makes the already long argument list even longer.
Thought about a couple of ways to do this, unfortunately this is the only
decent way to do this that I see. There's also no way to pass operator options

Getting the handling to work correctly took some effort, and the code is not
exactly nice.

Note that even though we activate the item when calling the custom drag
operator (helps indicating the pose being blended for example), we only call
the drag operator then, not the activate one. They are never executed both.

Also note that this won't compile right now, I'll have to commit some changes
to master first.

Commit Details:

Full Hash: 01a5d3fa282e948328efb77f616e41474157ab2f
Parent Commit: 1038356
Lines Changed: +202, -22

5 Modified Paths:

/source/blender/editors/include/UI_interface.h (+3, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+164, -17) (Diff)
/source/blender/editors/interface/ (+9, -2) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+20, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021