diff options
Diffstat (limited to 'source/blender/windowmanager/intern/wm_panel_type.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_panel_type.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/source/blender/windowmanager/intern/wm_panel_type.c b/source/blender/windowmanager/intern/wm_panel_type.c index f00129c139b..4324ae03b2c 100644 --- a/source/blender/windowmanager/intern/wm_panel_type.c +++ b/source/blender/windowmanager/intern/wm_panel_type.c @@ -41,46 +41,46 @@ static GHash *g_paneltypes_hash = NULL; PanelType *WM_paneltype_find(const char *idname, bool quiet) { - PanelType *pt; + PanelType *pt; - if (idname[0]) { - pt = BLI_ghash_lookup(g_paneltypes_hash, idname); - if (pt) { - return pt; - } - } + if (idname[0]) { + pt = BLI_ghash_lookup(g_paneltypes_hash, idname); + if (pt) { + return pt; + } + } - if (!quiet) { - printf("search for unknown paneltype %s\n", idname); - } + if (!quiet) { + printf("search for unknown paneltype %s\n", idname); + } - return NULL; + return NULL; } bool WM_paneltype_add(PanelType *pt) { - BLI_ghash_insert(g_paneltypes_hash, pt->idname, pt); - return true; + BLI_ghash_insert(g_paneltypes_hash, pt->idname, pt); + return true; } void WM_paneltype_remove(PanelType *pt) { - bool ok; + bool ok; - ok = BLI_ghash_remove(g_paneltypes_hash, pt->idname, NULL, NULL); + ok = BLI_ghash_remove(g_paneltypes_hash, pt->idname, NULL, NULL); - BLI_assert(ok); - (void)ok; + BLI_assert(ok); + (void)ok; } /* called on initialize WM_init() */ void WM_paneltype_init(void) { - /* reserve size is set based on blender default setup */ - g_paneltypes_hash = BLI_ghash_str_new_ex("g_paneltypes_hash gh", 512); + /* reserve size is set based on blender default setup */ + g_paneltypes_hash = BLI_ghash_str_new_ex("g_paneltypes_hash gh", 512); } void WM_paneltype_clear(void) { - BLI_ghash_free(g_paneltypes_hash, NULL, NULL); + BLI_ghash_free(g_paneltypes_hash, NULL, NULL); } |