[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38653] branches/merwin-spacenav/source/ blender/editors/interface/resources.c: Default for ndof_sensitivity to 1. 0 in case 0.0 is found on start.

Nathan Letwory nathan at letworyinteractive.com
Sun Jul 24 10:50:09 CEST 2011


Revision: 38653
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38653
Author:   jesterking
Date:     2011-07-24 08:50:09 +0000 (Sun, 24 Jul 2011)
Log Message:
-----------
Default for ndof_sensitivity to 1.0 in case 0.0 is found on start.

Modified Paths:
--------------
    branches/merwin-spacenav/source/blender/editors/interface/resources.c

Modified: branches/merwin-spacenav/source/blender/editors/interface/resources.c
===================================================================
--- branches/merwin-spacenav/source/blender/editors/interface/resources.c	2011-07-24 08:37:43 UTC (rev 38652)
+++ branches/merwin-spacenav/source/blender/editors/interface/resources.c	2011-07-24 08:50:09 UTC (rev 38653)
@@ -1583,6 +1583,9 @@
 	if (U.anisotropic_filter <= 0)
 		U.anisotropic_filter = 1;
 
+	if (U.ndof_sensitivity == 0.0)
+		U.ndof_sensitivity = 1.0f;
+
 	/* funny name, but it is GE stuff, moves userdef stuff to engine */
 // XXX	space_set_commmandline_options();
 	/* this timer uses U */




More information about the Bf-blender-cvs mailing list