Default for ndof_sensitivity to 1.0 in case 0.0 is found on start.
authorNathan Letwory <nathan@letworyinteractive.com>
Sun, 24 Jul 2011 08:50:09 +0000 (08:50 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Sun, 24 Jul 2011 08:50:09 +0000 (08:50 +0000)
source/blender/editors/interface/resources.c

index 3f825762d74b41fba94dc0e78e47b0d5ac63aa61..276e1b3dc61d0099b305bfd3dea1a8b7ee6aeca6 100644 (file)
@@ -1583,6 +1583,9 @@ void init_userdef_do_versions(void)
        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 */