diff options
author | YimingWu <xp8110@outlook.com> | 2021-05-27 15:22:42 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-05-27 15:22:52 +0300 |
commit | 02d1a1bfcc3c06dd2b6ebfc4e1d2ea48187bf221 (patch) | |
tree | 6bde7950be812446a2522a34ce35d7b6814ce9f0 /source/blender/blenloader | |
parent | fc6a6d3a28399916439bceddd59e6ef57f04ec29 (diff) | |
parent | f45270b4fb88c9d53b3b5abf0e3f2d6964623edf (diff) |
Merge remote-tracking branch 'origin/master' into lineart-fn-cached
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_290.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index 2b6f44c694b..565e62158ff 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -2069,6 +2069,24 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) } } + /* Set default value for the new bisect_threshold parameter in the mirror modifier. */ + if (!MAIN_VERSION_ATLEAST(bmain, 293, 19)) { + LISTBASE_FOREACH (Object *, ob, &bmain->objects) { + LISTBASE_FOREACH (ModifierData *, md, &ob->modifiers) { + if (md->type == eModifierType_Mirror) { + MirrorModifierData *mmd = (MirrorModifierData *)md; + /* This was the previous hard-coded value. */ + mmd->bisect_threshold = 0.001f; + } + } + } + + LISTBASE_FOREACH (Curve *, cu, &bmain->curves) { + /* Turn on clamping as this was implicit before. */ + cu->flag |= CU_PATH_CLAMP; + } + } + /** * Versioning code until next subversion bump goes here. * |