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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-20 17:14:02 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-20 17:35:34 +0300
commit49efb7bdbe5643f0a24f045419e5f280ad5f5734 (patch)
tree45f49ead8aa21fb8764b709c309d6e1ef892b38a /source/blender/blenloader/intern/versioning_defaults.c
parentd2e139e44e0a3b70ae3b517c7b8f2449d3d1620c (diff)
Camera: change default f-stop from 5.6 to 2.8
This gives a more noticeable effect by default. Also fixes startup.blend not having focus distance initialized correctly.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 83a21a5480d..338d1d1ff90 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -26,6 +26,7 @@
#include "BLI_string.h"
#include "BLI_system.h"
+#include "DNA_camera_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
@@ -406,6 +407,12 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
/* Match default for new meshes. */
mesh->smoothresh = DEG2RADF(30);
}
+
+ for (Camera *camera = bmain->cameras.first; camera; camera = camera->id.next) {
+ /* Initialize to a useful value. */
+ camera->dof.focus_distance = 10.0f;
+ camera->dof.aperture_fstop = 2.8f;
+ }
}
for (bScreen *sc = bmain->screens.first; sc; sc = sc->id.next) {