diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-13 21:56:55 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-13 21:57:20 +0300 |
commit | 9d28353b525ecfbcca1501be72e4276dfb2bbc2a (patch) | |
tree | 533876e87d98d0800ad3e55eb3e637492fc66de5 /source/blender/editors/space_file | |
parent | 4c193f731e31664eae335f7f093699b7a6dfac42 (diff) |
Cleanup: Make panel type flag names more clear
The overlap with the `Panel` flags that start with "PNL" was quite
confusing because wasn't clear which enum a flag was from. The
new names are a bit longer, but the clarity is worth it.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/file_panels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_panels.c b/source/blender/editors/space_file/file_panels.c index a71dec99e61..22d206c0a70 100644 --- a/source/blender/editors/space_file/file_panels.c +++ b/source/blender/editors/space_file/file_panels.c @@ -103,7 +103,7 @@ void file_tool_props_region_panels_register(ARegionType *art) strcpy(pt->idname, "FILE_PT_operator"); strcpy(pt->label, N_("Operator")); strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); - pt->flag = PNL_NO_HEADER; + pt->flag = PANEL_TYPE_NO_HEADER; pt->poll = file_panel_operator_poll; pt->draw_header = file_panel_operator_header; pt->draw = file_panel_operator; @@ -217,7 +217,7 @@ void file_execute_region_panels_register(ARegionType *art) strcpy(pt->idname, "FILE_PT_execution_buttons"); strcpy(pt->label, N_("Execute Buttons")); strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA); - pt->flag = PNL_NO_HEADER; + pt->flag = PANEL_TYPE_NO_HEADER; pt->poll = file_panel_operator_poll; pt->draw = file_panel_execution_buttons_draw; BLI_addtail(&art->paneltypes, pt); |