From 91abb70006866e651233ff44f0f275856a6bf65d Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Thu, 27 Feb 2020 16:42:34 -0300 Subject: Transform: Remove 'mouse_coordinate_override' property This property depends on the view that can change when redoing. --- source/blender/editors/transform/transform_convert_graph.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'source/blender/editors/transform/transform_convert_graph.c') diff --git a/source/blender/editors/transform/transform_convert_graph.c b/source/blender/editors/transform/transform_convert_graph.c index f6f982e854a..502679efedf 100644 --- a/source/blender/editors/transform/transform_convert_graph.c +++ b/source/blender/editors/transform/transform_convert_graph.c @@ -1,4 +1,4 @@ -/* +/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -261,11 +261,10 @@ void createTransGraphEditData(bContext *C, TransInfo *t) /* which side of the current frame should be allowed */ // XXX we still want this mode, but how to get this using standard transform too? if (t->mode == TFM_TIME_EXTEND) { - /* only side on which mouse is gets transformed */ - float xmouse, ymouse; - - UI_view2d_region_to_view(v2d, t->mouse.imval[0], t->mouse.imval[1], &xmouse, &ymouse); - t->frame_side = (xmouse > CFRA) ? 'R' : 'L'; // XXX use t->frame_side + /* only side on which center is gets transformed */ + float center[2]; + transform_convert_center_global_v2(t, center); + t->frame_side = (center[0] > CFRA) ? 'R' : 'L'; } else { /* normal transform - both sides of current frame are considered */ -- cgit v1.2.3