Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2011-06-02 15:51:38 +0400
committerJoshua Leung <aligorith@gmail.com>2011-06-02 15:51:38 +0400
commitb41427c66b31642869ba8540235ed964abcb244c (patch)
tree8265f672ad2d7b02b209cfd4459419f8c05a5e94 /source/blender/editors/transform/transform.c
parentdd43faa85555f1c9504eca4bf46201d1b6e0a253 (diff)
Bugfix: "Time Slide" tool broken
Dunno how long this has been broken for (*), but the Time Slide transform tool in DopeSheet no longer did anything most of the time. It appeared to be be caused by some blotched indexing code from ages ago. I've fixed this problem, as well as preventing the case where it would also give errors when only a single key was selected. (*) Does anyone actually use this tool? IIRC, this was added during Orange, though I can't find the commit for this anymore or why it was added. Probably it might be better to just let it go...
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 5b733cab699..0ce21c2efee 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -5801,8 +5801,8 @@ int TimeSlide(TransInfo *t, const int mval[2])
char str[200];
/* calculate mouse co-ordinates */
- UI_view2d_region_to_view(v2d, mval[0], mval[0], &cval[0], &cval[1]);
- UI_view2d_region_to_view(v2d, t->imval[0], t->imval[0], &sval[0], &sval[1]);
+ UI_view2d_region_to_view(v2d, mval[0], mval[1], &cval[0], &cval[1]);
+ UI_view2d_region_to_view(v2d, t->imval[0], t->imval[1], &sval[0], &sval[1]);
/* t->values[0] stores cval[0], which is the current mouse-pointer location (in frames) */
// XXX Need to be able to repeat this