Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-10-13 01:32:28 +0300
committerJoshua Leung <aligorith@gmail.com>2018-10-20 05:30:21 +0300
commit37ffd95594fe801cd51f60816e575fb3786cd095 (patch)
treeb7dc2fb80a25488641874c6f3948a4a4d2bd7667 /source/blender/editors/space_graph
parent3c61efcf206dcce904570baef1d5e209415d0ea9 (diff)
Fix: Drivers popover not showing
This was broken since cca87ccc753a85b447872a259c9d3e3f07ec1c13 The problem was that as this popover was defined in the C-code for the Graph Editor, the relevant panel never got added to the WM_paneltype registry, since only Python defined panels get WM_paneltype_add() called when they are defined. Since the majority of panels defined for regions are only used there, a more localised fix was applied here by only adding the driver popover to the global list manually.
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/graph_buttons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c
index ddb248f754d..25d1465c579 100644
--- a/source/blender/editors/space_graph/graph_buttons.c
+++ b/source/blender/editors/space_graph/graph_buttons.c
@@ -1197,7 +1197,7 @@ void graph_buttons_register(ARegionType *art)
strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
pt->draw = graph_panel_drivers_popover;
pt->poll = graph_panel_drivers_popover_poll;
- BLI_addtail(&art->paneltypes, pt);
+ WM_paneltype_add(pt); /* This panel isn't used in this region. Add explicitly to global list (so popovers work). */
pt = MEM_callocN(sizeof(PanelType), "spacetype graph panel modifiers");
strcpy(pt->idname, "GRAPH_PT_modifiers");