diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-04-03 19:18:59 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2012-04-03 19:18:59 +0400 |
commit | 123f7d3eb3e7ba14c05e4097a57119bf75e08019 (patch) | |
tree | 2cb3eacdc38914e43a509cdd168c921a9174344d /source/blender/blenkernel/BKE_context.h | |
parent | f137ba074abb599ea2b4226f47a4234cb6995f1e (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/BKE_context.h')
-rw-r--r-- | source/blender/blenkernel/BKE_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_context.h b/source/blender/blenkernel/BKE_context.h index 5966f8e0ff0..944cce675cc 100644 --- a/source/blender/blenkernel/BKE_context.h +++ b/source/blender/blenkernel/BKE_context.h @@ -117,6 +117,7 @@ bContext *CTX_copy(const bContext *C); /* Stored Context */ bContextStore *CTX_store_add(ListBase *contexts, const char *name, PointerRNA *ptr); +bContextStore *CTX_store_add_all(ListBase *contexts, bContextStore *context); void CTX_store_set(bContext *C, bContextStore *store); bContextStore *CTX_store_copy(bContextStore *store); void CTX_store_free(bContextStore *store); |