[Bf-blender-cvs] [6147ad3] input_method_editor: Bugfix T42648: Invert Selection operator is not working for animation channels

Joshua Leung noreply at git.blender.org
Mon Nov 24 00:45:16 CET 2014


Commit: 6147ad35962a55f5a97f9847454dc6def383067b
Author: Joshua Leung
Date:   Sat Nov 22 00:43:41 2014 +1300
Branches: input_method_editor
https://developer.blender.org/rB6147ad35962a55f5a97f9847454dc6def383067b

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