diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-08 15:46:41 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-08 15:46:41 +0300 |
commit | a0354619c77747abe47e4f60a3b26f63f433d40a (patch) | |
tree | 25448d2f46d94662859d47a7f9d9014b93b5a3ee /source/blender/src/toets.c | |
parent | 6685c0d571059e1ad84cd4617e18301d9090dbca (diff) |
Patch #5091, by Ramon Carlos Ruiz
For numerical pad 2-4-6-8, it adds a step value in degrees in the User
Presets. Code had to be rewritten some... :)
Diffstat (limited to 'source/blender/src/toets.c')
-rw-r--r-- | source/blender/src/toets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index a9ec10e6114..4f47206006e 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -307,7 +307,7 @@ void persptoetsen(unsigned short event) else if(G.vd->persp<2) { if(event==PAD4 || event==PAD6) { /* z-axis */ - phi= (float)(M_PI/24.0); + phi= (float)(M_PI/360.0)*U.pad_rot_angle; if(event==PAD6) phi= -phi; si= (float)sin(phi); q1[0]= (float)cos(phi); @@ -322,7 +322,7 @@ void persptoetsen(unsigned short event) VECCOPY(q1+1, G.vd->viewinv[0]); Normalise(q1+1); - phi= (float)(M_PI/24.0); + phi= (float)(M_PI/360.0)*U.pad_rot_angle; if(event==PAD2) phi= -phi; si= (float)sin(phi); q1[0]= (float)cos(phi); |