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:
authorClément Foucault <foucault.clem@gmail.com>2019-05-28 21:04:46 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-28 21:06:22 +0300
commitb76ccc7f802b7bbaa1d5b78e3e4a33784c38072c (patch)
treed1310df616fc501a70ccffa3ec2eb50c476a6593 /source/blender/blenloader/intern/versioning_defaults.c
parent40207d656becdbde231b86ed66c83c74c4baabe8 (diff)
Eevee: Change default shadowmap near clipping distance
And also fix some RNA props defaults and ranges. Fix T64452 Shadows not appearing in eevee
Diffstat (limited to 'source/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index d22620f9224..5b241d613e3 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -463,6 +463,12 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
scene->eevee.gi_filter_quality = 3.0f;
}
+ for (Light *light = bmain->lights.first; light; light = light->id.next) {
+ /* Fix lights defaults. */
+ light->clipsta = 0.05f;
+ light->att_dist = 40.0f;
+ }
+
if (app_template == NULL) {
/* Enable for UV sculpt (other brush types will be created as needed),
* without this the grab brush will be active but not selectable from the list. */