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/interface/interface_templates.c | |
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/interface/interface_templates.c')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 83274db9db9..43ead511cfe 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -1931,7 +1931,7 @@ void uiTemplateModifiers(uiLayout *UNUSED(layout), bContext *C) } /* Move to the next instanced panel corresponding to the next modifier. */ - while ((panel->type == NULL) || !(panel->type->flag & PNL_INSTANCED)) { + while ((panel->type == NULL) || !(panel->type->flag & PANEL_TYPE_INSTANCED)) { panel = panel->next; BLI_assert(panel != NULL); /* There shouldn't be fewer panels than modifiers with UIs. */ } @@ -2096,7 +2096,7 @@ void uiTemplateConstraints(uiLayout *UNUSED(layout), bContext *C, bool use_bone_ } /* Move to the next instanced panel corresponding to the next constraint. */ - while ((panel->type == NULL) || !(panel->type->flag & PNL_INSTANCED)) { + while ((panel->type == NULL) || !(panel->type->flag & PANEL_TYPE_INSTANCED)) { panel = panel->next; BLI_assert(panel != NULL); /* There shouldn't be fewer panels than constraint panels. */ } @@ -2166,7 +2166,7 @@ void uiTemplateGpencilModifiers(uiLayout *UNUSED(layout), bContext *C) } /* Move to the next instanced panel corresponding to the next modifier. */ - while ((panel->type == NULL) || !(panel->type->flag & PNL_INSTANCED)) { + while ((panel->type == NULL) || !(panel->type->flag & PANEL_TYPE_INSTANCED)) { panel = panel->next; BLI_assert(panel != NULL); /* There shouldn't be fewer panels than modifiers with UIs. */ } @@ -2237,7 +2237,7 @@ void uiTemplateShaderFx(uiLayout *UNUSED(layout), bContext *C) } /* Move to the next instanced panel corresponding to the next modifier. */ - while ((panel->type == NULL) || !(panel->type->flag & PNL_INSTANCED)) { + while ((panel->type == NULL) || !(panel->type->flag & PANEL_TYPE_INSTANCED)) { panel = panel->next; BLI_assert(panel != NULL); /* There shouldn't be fewer panels than modifiers with UIs. */ } |