[Bf-blender-cvs] [d71bcab] master: Fix for border select doesn't work with normalization enabled
Sergey Sharybin
noreply at git.blender.org
Fri Dec 20 09:48:08 CET 2013
Commit: d71bcab0762d2dedf961136d831b6b0ad7dbc43c
Author: Sergey Sharybin
Date: Fri Dec 20 14:46:50 2013 +0600
http://developer.blender.org/rBd71bcab0762d2dedf961136d831b6b0ad7dbc43c
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.
===================================================================
M source/blender/editors/space_graph/graph_select.c
===================================================================
diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c
index d0dcaf9..6605404 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
More information about the Bf-blender-cvs
mailing list