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.
This commit is contained in:
2005-03-24 13:13:00 +00:00
parent 7b6ec97182
commit 5348fcd293

View File

@@ -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;
}