[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11423] branches/ndof/source/blender/src/ view.c: fix mix of declaration and instructions (it would choke MSVC) and add missing

Martin Poirier theeth at yahoo.com
Mon Jul 30 00:35:36 CEST 2007


Revision: 11423
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11423
Author:   theeth
Date:     2007-07-30 00:35:35 +0200 (Mon, 30 Jul 2007)

Log Message:
-----------
fix mix of declaration and instructions (it would choke MSVC) and add missing
return type.

Modified Paths:
--------------
    branches/ndof/source/blender/src/view.c

Modified: branches/ndof/source/blender/src/view.c
===================================================================
--- branches/ndof/source/blender/src/view.c	2007-07-29 21:48:26 UTC (rev 11422)
+++ branches/ndof/source/blender/src/view.c	2007-07-29 22:35:35 UTC (rev 11423)
@@ -574,7 +574,7 @@
 
 void getndof(float *sbval);
 
-static filterNDOFvalues(float *sbval)
+static void filterNDOFvalues(float *sbval)
 {
 	int i=0;
 	float max  = 0.0;
@@ -1036,10 +1036,6 @@
     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 @@
     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;
 	}





More information about the Bf-blender-cvs mailing list