[Bf-blender-cvs] [3131b5d] master: Fix T40354: Camera Tracks in the Dope Sheet can't be deselected
Sergey Sharybin
noreply at git.blender.org
Mon May 26 12:36:38 CEST 2014
Commit: 3131b5d9ddec5bdc89d8019080e2a9d3bbfc919f
Author: Sergey Sharybin
Date: Mon May 26 16:36:20 2014 +0600
https://developer.blender.org/rB3131b5d9ddec5bdc89d8019080e2a9d3bbfc919f
Fix T40354: Camera Tracks in the Dope Sheet can't be deselected
===================================================================
M source/blender/editors/space_clip/clip_dopesheet_ops.c
===================================================================
diff --git a/source/blender/editors/space_clip/clip_dopesheet_ops.c b/source/blender/editors/space_clip/clip_dopesheet_ops.c
index 573b6bc..7ae5eda 100644
--- a/source/blender/editors/space_clip/clip_dopesheet_ops.c
+++ b/source/blender/editors/space_clip/clip_dopesheet_ops.c
@@ -93,6 +93,7 @@ static int dopesheet_select_channel_exec(bContext *C, wmOperator *op)
float location[2];
const bool extend = RNA_boolean_get(op->ptr, "extend");
int current_channel_index = 0, channel_index;
+ const bool show_selected_only = (dopesheet->flag & TRACKING_DOPE_SELECTED_ONLY) != 0;
RNA_float_get_array(op->ptr, "location", location);
channel_index = -(location[1] - (CHANNEL_FIRST + CHANNEL_HEIGHT_HALF)) / CHANNEL_STEP;
@@ -110,6 +111,9 @@ static int dopesheet_select_channel_exec(bContext *C, wmOperator *op)
tracking->act_track = track;
BKE_tracking_track_select(tracksbase, track, TRACK_AREA_ALL, true);
}
+ else if (show_selected_only == false) {
+ BKE_tracking_track_deselect(track, TRACK_AREA_ALL);
+ }
}
else if (!extend)
track->flag &= ~TRACK_DOPE_SEL;
More information about the Bf-blender-cvs
mailing list