Blender Git Loki

Git Commits -> Revision 123f7d3

Revision 123f7d3 by Lukas Toenne (master)
April 3, 2012, 15:18 (GMT)
Popup menu layout inherits context store from button.

When adding extra context data in a layout using uiLayoutSetContextPointer, this info was not inherited by popup menus generated in this layout. While operators from regular buttons work fine, the data is missing in operators from menus and such. This patch copies the bContextStore from buttons to the new uiLayout used for popups.

Commit Details:

Full Hash: 123f7d3eb3e7ba14c05e4097a57119bf75e08019
SVN Revision: 45375
Parent Commit: f137ba0
Lines Changed: +42, -2

5 Modified Paths:

/source/blender/blenkernel/BKE_context.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/context.c (+29, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+6, -0) (Diff)
/source/blender/editors/interface/interface_regions.c (+4, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021