[Bf-blender-cvs] [2288d73] master: Bugfix T42648: Invert Selection operator is not working for animation channels

Joshua Leung noreply at git.blender.org
Fri Nov 21 12:49:11 CET 2014


Commit: 2288d738bf5a14393ce2cf7687cac542146e504c
Author: Joshua Leung
Date:   Sat Nov 22 00:43:41 2014 +1300
Branches: master
https://developer.blender.org/rB2288d738bf5a14393ce2cf7687cac542146e504c

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

The wrong selection mode was being used/passed to operators.

===================================================================

M	source/blender/editors/animation/anim_channels_edit.c

===================================================================

diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index 579275d..7ee1b8c 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -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);




More information about the Bf-blender-cvs mailing list