From 17bc29253070f1707acd40c75e4a0e5c53704b24 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 8 Sep 2022 12:04:36 +1000 Subject: 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. --- source/blender/makesdna/DNA_anim_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_anim_types.h') diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h index e2b58cefef6..0ab14988e40 100644 --- a/source/blender/makesdna/DNA_anim_types.h +++ b/source/blender/makesdna/DNA_anim_types.h @@ -1160,6 +1160,9 @@ typedef struct IdAdtTemplate { AnimData *adt; } IdAdtTemplate; +/* From: `DNA_object_types.h`, see it's doc-string there. */ +#define SELECT 1 + /* ************************************************ */ #ifdef __cplusplus -- cgit v1.2.3