Fix T47503 - My previous fix for T47472 accidentally reused an unrelated flag

ked->iterflags actually already had an enum defined, but at the time of the previous
fix, I'd forgotten that it was defined. As a result, "f1 needs NLA remap" got given
the same flag as "include handles when doing keyframe selection checks".
This commit is contained in:
Joshua Leung 2016-02-26 15:34:32 +13:00
parent 18a6ebbc3a
commit 1db29781db
Notes: blender-bot 2023-02-14 08:11:21 +01:00
Referenced by issue #47503, You can box-select only keyframes' handles in dopesheet, even though they are not visible/editable there.
1 changed files with 11 additions and 14 deletions

View File

@ -131,21 +131,10 @@ typedef struct KeyframeEditData {
int curIndex; /* index of current keyframe being iterated over */
/* flags */
short curflags; /* current flags for the keyframe we're reached in the iteration process */
short iterflags; /* settings for iteration process */
short curflags; /* current flags for the keyframe we're reached in the iteration process (eKeyframeVertOk) */
short iterflags; /* settings for iteration process (eKeyframeIterFlags) */
} KeyframeEditData;
/* Flags for controlling the iteration process (to supply additional capabilities, etc.) */
typedef enum eKeyframeEditData_IterFlags {
/* Perform NLA time remapping (global -> strip) for the "f1" parameter
* (e.g. used for selection tools on summary tracks)
*/
KED_F1_NLA_UNMAP = (1 << 0),
/* Perform NLA time remapping (global -> strip) for the "f2" parameter */
KED_F2_NLA_UNMAP = (1 << 1),
} eKeyframeEditData_IterFlags;
/* ------- Function Pointer Typedefs ---------------- */
/* callback function that refreshes the F-Curve after use */
@ -171,7 +160,15 @@ typedef enum eKeyframeVertOk {
typedef enum eKeyframeIterFlags {
/* consider handles in addition to key itself */
KEYFRAME_ITER_INCL_HANDLES = (1 << 0),
} eKeyframeIterFlags;
/* Perform NLA time remapping (global -> strip) for the "f1" parameter
* (e.g. used for selection tools on summary tracks)
*/
KED_F1_NLA_UNMAP = (1 << 1),
/* Perform NLA time remapping (global -> strip) for the "f2" parameter */
KED_F2_NLA_UNMAP = (1 << 2),
} eKeyframeIterFlags;
/* ------- Custom Data Type Defines ------------------ */