Commit: 0a3ca175afa27d5e6a5f5242a21ae2c1c5326ddd
Author: Joshua Leung
Date:   Mon Oct 26 20:15:27 2015 +1300
Branches: master
https://developer.blender.org/rB0a3ca175afa27d5e6a5f5242a21ae2c1c5326ddd

Graph Editor: Use Cursor X in Drivers mode during Transforms (where appropriate)

===================================================================

M       source/blender/editors/transform/transform_generics.c

===================================================================

diff --git a/source/blender/editors/transform/transform_generics.c 
b/source/blender/editors/transform/transform_generics.c
index dc541c6..ce2d90a 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -1665,8 +1665,14 @@ void calculateCenterCursorGraph2D(TransInfo *t, float 
r_center[2])
        Scene *scene = t->scene;
        
        /* cursor is combination of current frame, and graph-editor cursor 
value */
-       r_center[0] = (float)(scene->r.cfra);
-       r_center[1] = sipo->cursorVal;
+       if (sipo->mode == SIPO_MODE_DRIVERS) {
+               r_center[0] = sipo->cursorTime;
+               r_center[1] = sipo->cursorVal;
+       }
+       else {
+               r_center[0] = (float)(scene->r.cfra);
+               r_center[1] = sipo->cursorVal;
+       }
 }
 
 void calculateCenterMedian(TransInfo *t, float r_center[3])

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to