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:
authorTon Roosendaal <ton@blender.org>2005-03-24 16:13:00 +0300
committerTon Roosendaal <ton@blender.org>2005-03-24 16:13:00 +0300
commit5348fcd293a54295046c0537d5135234bddb2e96 (patch)
treeb9e80c73f1210d3089f0df8902ce653e3d486c98
parent7b6ec97182f0c4a3dbc53ed09c6cb50168c5812f (diff)
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.
-rw-r--r--source/blender/src/editobject.c10
1 files 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;
}