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:
authorAntonio Vazquez <blendergit@gmail.com>2020-05-12 18:47:48 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-05-12 18:48:28 +0300
commitf24e9bb0380936bcaf6c194b54342a2977784cff (patch)
tree96d8919928e1a02e7eeead2242e0a3a439ceccc7 /source/blender/blenloader/intern/versioning_280.c
parentbe4b3c64ad76a4bf12ac1cbcd948f8d9bc7be20e (diff)
GPencil: Add new parameter for SMAA threshold
This parameter allows to define the threshold for SMAA algorithm. Differential Revision: https://developer.blender.org/D7708
Diffstat (limited to 'source/blender/blenloader/intern/versioning_280.c')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index d246eadb381..ff3909f5e1a 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -5052,6 +5052,13 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
+ if (!MAIN_VERSION_ATLEAST(bmain, 283, 16)) {
+ /* Init SMAA threshold for grease pencil render. */
+ LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
+ scene->grease_pencil_settings.smaa_threshold = 1.0f;
+ }
+ }
+
/**
* Versioning code until next subversion bump goes here.
*