Bugfix T42648: Invert Selection operator is not working for animation channels

The wrong selection mode was being used/passed to operators.
This commit is contained in:
Joshua Leung 2014-11-22 00:43:41 +13:00
parent cc0623ff6c
commit 2288d738bf
Notes: blender-bot 2023-02-14 09:48:25 +01:00
Referenced by issue #42648, Invert Selection operator is not working foar animation channels
1 changed files with 1 additions and 1 deletions

View File

@ -2165,7 +2165,7 @@ static int animchannels_deselectall_exec(bContext *C, wmOperator *op)
/* 'standard' behavior - check if selected, then apply relevant selection */
if (RNA_boolean_get(op->ptr, "invert"))
ANIM_deselect_anim_channels(&ac, ac.data, ac.datatype, false, ACHANNEL_SETFLAG_TOGGLE);
ANIM_deselect_anim_channels(&ac, ac.data, ac.datatype, false, ACHANNEL_SETFLAG_INVERT);
else
ANIM_deselect_anim_channels(&ac, ac.data, ac.datatype, true, ACHANNEL_SETFLAG_ADD);