From 123f7d3eb3e7ba14c05e4097a57119bf75e08019 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Tue, 3 Apr 2012 15:18:59 +0000 Subject: 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. --- source/blender/blenkernel/BKE_context.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/BKE_context.h') 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); -- cgit v1.2.3