From d71bcab0762d2dedf961136d831b6b0ad7dbc43c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 20 Dec 2013 14:46:50 +0600 Subject: Fix for border select doesn't work with normalization enabled Some lazy developer named Sergey typed zero instead of actual mapping flag in unit mapping function in the original f-curve normalization commit. --- source/blender/editors/space_graph/graph_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_graph') diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c index d0dcaf91e77..66054042305 100644 --- a/source/blender/editors/space_graph/graph_select.c +++ b/source/blender/editors/space_graph/graph_select.c @@ -259,7 +259,7 @@ static void borderselect_graphkeys(bAnimContext *ac, rcti rect, short mode, shor for (ale = anim_data.first; ale; ale = ale->next) { AnimData *adt = ANIM_nla_mapping_get(ac, ale); FCurve *fcu = (FCurve *)ale->key_data; - float unit_scale = ANIM_unit_mapping_get_factor(ac->scene, ale->id, fcu, 0); + float unit_scale = ANIM_unit_mapping_get_factor(ac->scene, ale->id, fcu, mapping_flag); /* apply NLA mapping to all the keyframes, since it's easier than trying to * guess when a callback might use something different -- cgit v1.2.3