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>2006-11-08 15:46:41 +0300
committerTon Roosendaal <ton@blender.org>2006-11-08 15:46:41 +0300
commita0354619c77747abe47e4f60a3b26f63f433d40a (patch)
tree25448d2f46d94662859d47a7f9d9014b93b5a3ee /source/blender/src/toets.c
parent6685c0d571059e1ad84cd4617e18301d9090dbca (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.c4
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);