diff options
author | Hans Goudey <h.goudey@me.com> | 2020-10-30 03:34:29 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-10-30 03:34:29 +0300 |
commit | 6250a8725ed6a2d9d85f4d313e9931c2fe4a8de3 (patch) | |
tree | 97ae3dec80e6a7c2c49295587682bd53bf71eecc /source/blender/blenkernel/intern/gpencil_modifier.c | |
parent | 81a0fffb2d2ccb40320bec418267b0c105db19a4 (diff) |
Cleanup: Use an enum to set instanced panel expansion
This commit uses an enum to access expansion for specific panels for
each modifier, constraint, etc. Even though these values are quite simple,
this can help make the code more explicit when the ui_expand_flag is
accessed directly. Also update comments about this bitfield to make
them consistent.
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil_modifier.c')
-rw-r--r-- | source/blender/blenkernel/intern/gpencil_modifier.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c b/source/blender/blenkernel/intern/gpencil_modifier.c index f4041fae047..934791ccc35 100644 --- a/source/blender/blenkernel/intern/gpencil_modifier.c +++ b/source/blender/blenkernel/intern/gpencil_modifier.c @@ -39,6 +39,7 @@ #include "DNA_meshdata_types.h" #include "DNA_object_types.h" #include "DNA_scene_types.h" +#include "DNA_screen_types.h" #include "BKE_gpencil.h" #include "BKE_gpencil_geom.h" @@ -413,7 +414,7 @@ void BKE_gpencil_modifierType_panel_id(GpencilModifierType type, char *r_idname) void BKE_gpencil_modifier_panel_expand(GpencilModifierData *md) { - md->ui_expand_flag |= (1 << 0); + md->ui_expand_flag |= UI_PANEL_DATA_EXPAND_ROOT; } /** |