diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-13 19:39:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-13 20:15:13 +0300 |
commit | af0fc660499a63b367dcc63222d0baee93aa665c (patch) | |
tree | 823952ab0763af43b962d4f249b8c37c3ab8ef93 /source/blender/makesrna/intern/rna_ui.c | |
parent | 6845306c68a874cb1a9171d6a08a1578eea41a8a (diff) |
WM: register global list of panel types
Allows simple lookups for popovers.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c index 7bec598351e..a271df464b7 100644 --- a/source/blender/makesrna/intern/rna_ui.c +++ b/source/blender/makesrna/intern/rna_ui.c @@ -205,6 +205,8 @@ static void rna_Panel_unregister(Main *UNUSED(bmain), StructRNA *type) BLI_freelistN(&pt->children); BLI_freelinkN(&art->paneltypes, pt); + WM_paneltype_remove(pt); + /* update while blender is running */ WM_main_add_notifier(NC_WINDOW, NULL); } @@ -313,6 +315,8 @@ static StructRNA *rna_Panel_register( } } + WM_paneltype_add(pt); + /* update while blender is running */ WM_main_add_notifier(NC_WINDOW, NULL); |