From 5348fcd293a54295046c0537d5135234bddb2e96 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 24 Mar 2005 13:13:00 +0000 Subject: Function std_rmouse_transform() works with function pointer to denote what todo. With the new Transform(), using different args, it's not easy to do it with single function pointer. For the time being, the function pointer isn't used for the 3d window. --- source/blender/src/editobject.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 8706552b84e..999173e288f 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -6748,11 +6748,11 @@ void std_rmouse_transform(void (*xf_func)(int)) while(get_mbut() & mousebut) { getmouseco_areawin(mval); if(abs(mval[0]-xo)+abs(mval[1]-yo) > 10) { -#ifdef NEWTRANSFORM - Transform(TFM_TRANSLATION); -#else - xf_func('g'); -#endif + if(curarea->spacetype==SPACE_VIEW3D) + Transform(TFM_TRANSLATION); + else + xf_func('g'); + while(get_mbut() & mousebut) BIF_wait_for_statechange(); return; } -- cgit v1.2.3