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:
authorCampbell Barton <ideasman42@gmail.com>2018-07-13 19:39:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-13 20:15:13 +0300
commitaf0fc660499a63b367dcc63222d0baee93aa665c (patch)
tree823952ab0763af43b962d4f249b8c37c3ab8ef93 /source/blender/makesrna/intern/rna_ui.c
parent6845306c68a874cb1a9171d6a08a1578eea41a8a (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.c4
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);