diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-08 05:04:36 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-08 05:08:20 +0300 |
commit | 17bc29253070f1707acd40c75e4a0e5c53704b24 (patch) | |
tree | 6fc27c8998e29bc1f6599bd4dc9fd3d9a3b20df1 /source/blender/makesdna/DNA_object_types.h | |
parent | c2c369ebe693456b7048b3908f342f5667e0fd03 (diff) |
Cleanup: remove ED_types.h & ACTIVE, DESELECT definitions
- ACTIVE flag is no longer in use.
- DESELECT was used in some places as an alias for false,
even though this could arguably help readability, in practice this
was often passed with a selection flag leading to confusing calls
such as `select_beztriple(bezt, DESELECT, SELECT, HIDDEN)`.
Replace SELECT/DESELECT with true/false in these cases.
- Remove ED_types.h. Add a 'SELECT' definition to DNA_anim_types.h,
for fcurve_test, we could use a shared DNA header, or remove use of
the define entirely in favor of typed enums.
Diffstat (limited to 'source/blender/makesdna/DNA_object_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_object_types.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index ac9e61e03e8..add11d61db8 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -477,7 +477,13 @@ typedef struct ObHook { /* **************** OBJECT ********************* */ -/* used many places, should be specialized. */ +/** + * This is used as a flag for many kinds of data that use selections, examples include: + * - #BezTriple.f1, #BezTriple.f2, #BezTriple.f3 + * - #bNote.flag + * - #MovieTrackingTrack.flag + * And more, ideally this would have a generic location. + */ #define SELECT 1 /** #Object.type */ |