diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-09 08:10:19 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-09 08:10:19 +0300 |
commit | 136f0910ff662a74b02c30ae9b79275bc74c8406 (patch) | |
tree | 324bc0b3a07b436b2558dadee174f6ef6db1a53b | |
parent | 20f53f6984997f94def980b71a4e71119dbb147d (diff) |
Fix T96250: Invalid default for uv_relax_method
Correct the default & version existing files.
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.c | 7 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_scene_defaults.h | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index 2a840ea585a..32dcb977110 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -2578,5 +2578,12 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) */ { /* Keep this block, even when empty. */ + + LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { + ToolSettings *ts = scene->toolsettings; + if (ts->uv_relax_method == 0) { + ts->uv_relax_method = UV_SCULPT_TOOL_RELAX_LAPLACIAN; + } + } } } diff --git a/source/blender/makesdna/DNA_scene_defaults.h b/source/blender/makesdna/DNA_scene_defaults.h index 82f788e0623..74db1d14bbc 100644 --- a/source/blender/makesdna/DNA_scene_defaults.h +++ b/source/blender/makesdna/DNA_scene_defaults.h @@ -360,6 +360,10 @@ /* GP Stroke Placement */ \ .gpencil_v3d_align = GP_PROJECT_VIEWSPACE, \ .gpencil_v2d_align = GP_PROJECT_VIEWSPACE, \ + \ + /* UV painting */ \ + .uv_sculpt_settings = 0, \ + .uv_relax_method = UV_SCULPT_TOOL_RELAX_LAPLACIAN, \ } /* clang-format off */ |