Fix T96250: Invalid default for uv_relax_method

Correct the default & version existing files.
This commit is contained in:
Campbell Barton 2022-03-09 16:10:19 +11:00
parent 20f53f6984
commit 136f0910ff
Notes: blender-bot 2023-02-13 16:04:57 +01:00
Referenced by issue #96250, Pressing autocomplete in the console after tool_settings prints warning message
2 changed files with 11 additions and 0 deletions

View File

@ -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;
}
}
}
}

View File

@ -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 */