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/makesdna/DNA_constraint_types.h | |
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/makesdna/DNA_constraint_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_constraint_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index c95e5376670..93a67602047 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -60,7 +60,7 @@ typedef struct bConstraint { /** Constraint name, MAX_NAME. */ char name[64]; - /* Flag for panel and subpanel closed / open state in the UI. */ + /* An "expand" bit for each of the constraint's (sub)panels (uiPanelDataExpansion). */ short ui_expand_flag; /** Amount of influence exherted by constraint (0.0-1.0). */ |