Page MenuHome

RotaViewStep.patch

RotaViewStep.patch

? creator/winbuildinfo.h
Index: source/blender/makesdna/DNA_userdef_types.h
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/makesdna/DNA_userdef_types.h,v
retrieving revision 1.57
diff -u -r1.57 DNA_userdef_types.h
--- source/blender/makesdna/DNA_userdef_types.h 12 Oct 2006 11:53:50 -0000 1.57
+++ source/blender/makesdna/DNA_userdef_types.h 12 Oct 2006 20:22:00 -0000
@@ -174,6 +174,7 @@
short rvibright; /* rotating view icon brightness */
char versemaster[160];
short pad1;
+ int angRotView, padangRotView; /*control the rotation step of the view when PAD2,PAD4,PAD6&PAD8 is use*/
} UserDef;
extern UserDef U; /* from usiblender.c !!!! */
Index: source/blender/src/space.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/space.c,v
retrieving revision 1.384
diff -u -r1.384 space.c
--- source/blender/src/space.c 12 Oct 2006 11:53:50 -0000 1.384
+++ source/blender/src/space.c 12 Oct 2006 20:25:27 -0000
@@ -2748,7 +2748,8 @@
&U.rvibright, 0, 10, 0, 0,
"The brightness of the icon");
uiBlockEndAlign(block);
-
+
+ uiDefButI(block, NUM, B_DRAWINFO, "Rotation Angle:",(xpos+edgsp+(3*mpref)+(4*midsp)),y1,(mpref),buth,&U.angRotView, 0, 90, 0, 0,"Control the rotation step of the view when PAD2,PAD4,PAD6&PAD8 is use");
uiDefBut(block, LABEL,0,"Select with:",
(xpos+(2*edgsp)+(3*mpref)+(3*midsp)),y6label,mpref,buth,
Index: source/blender/src/toets.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/toets.c,v
retrieving revision 1.84
diff -u -r1.84 toets.c
--- source/blender/src/toets.c 28 Sep 2006 01:55:44 -0000 1.84
+++ source/blender/src/toets.c 12 Oct 2006 20:33:25 -0000
@@ -305,7 +305,10 @@
else if(G.vd->persp<2) {
if(event==PAD4 || event==PAD6) {
/* z-axis */
- phi= (float)(M_PI/24.0);
+ if (U.angRotView==0)
+ phi= (float)(M_PI/24.0);
+ else
+ phi= (float)(M_PI/360.0)*U.angRotView;
if(event==PAD6) phi= -phi;
si= (float)sin(phi);
q1[0]= (float)cos(phi);
@@ -320,7 +323,10 @@
VECCOPY(q1+1, G.vd->viewinv[0]);
Normalise(q1+1);
- phi= (float)(M_PI/24.0);
+ if (U.angRotView==0)
+ phi= (float)(M_PI/24.0);
+ else
+ phi= (float)(M_PI/360.0)*U.angRotView;
if(event==PAD2) phi= -phi;
si= (float)sin(phi);
q1[0]= (float)cos(phi);

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8f/6b/6369618f2fe0f86e17ff89c65364

Event Timeline