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:
authorMartin Poirier <theeth@yahoo.com>2007-07-30 02:35:35 +0400
committerMartin Poirier <theeth@yahoo.com>2007-07-30 02:35:35 +0400
commitc7ac42403ed6a767af923e51a8f9194b7b35474f (patch)
tree456abf72579fa79646f808cd3312b90a24a2b411 /source/blender/src
parent6fd555a4cc5f95a853583fce0d37aecf9fa05309 (diff)
fix mix of declaration and instructions (it would choke MSVC) and add missing
return type.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/view.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index 7594fec45dc..029222963b6 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -574,7 +574,7 @@ float m_dist;
void getndof(float *sbval);
-static filterNDOFvalues(float *sbval)
+static void filterNDOFvalues(float *sbval)
{
int i=0;
float max = 0.0;
@@ -1036,10 +1036,6 @@ void viewmoveNDOF(int mode)
float diff[4];
float d, curareaX, curareaY;
- //reset view type
- G.vd->view = 0;
-//printf("passing here \n");
-
/* Sensitivity will control how fast the view rotates. The value was
* obtained experimentally by tweaking until the author didn't get dizzy watching.
* Perhaps this should be a configurable user parameter.
@@ -1051,6 +1047,10 @@ void viewmoveNDOF(int mode)
const float minZoom = -30.0f;
const float maxZoom = 300.0f;
+ //reset view type
+ G.vd->view = 0;
+//printf("passing here \n");
+//
if (G.obedit==NULL && ob && !(ob->flag & OB_POSEMODE)) {
use_sel = 1;
}