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:
authorRichard Antalik <richardantalik@gmail.com>2021-07-13 13:46:40 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-07-13 13:52:57 +0300
commitaf42b35e53413a90200bd9d8b0c2051ceee081b5 (patch)
tree7b6ef28d92c6dc1e6c5a0351178d378482b5fdd6 /source/blender/blenloader
parent71b4a1687ec693df7cf3dc77e80d097b741ac109 (diff)
Fix UV snapping broken
Caused by fba9cd019f21, then fixed by 0e4245bc28e6, but without subversion bump, so some files were still broken after fix. Repeat fix again, but this time also bump subversion. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D11864
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_300.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index 5d3bde428c0..1e80510ef03 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -501,6 +501,16 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
FOREACH_NODETREE_END;
}
+ if (!MAIN_VERSION_ATLEAST(bmain, 300, 10)) {
+ LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
+ ToolSettings *tool_settings = scene->toolsettings;
+ if (tool_settings->snap_uv_mode & (1 << 4)) {
+ tool_settings->snap_uv_mode |= (1 << 6); /* SCE_SNAP_MODE_INCREMENT */
+ tool_settings->snap_uv_mode &= ~(1 << 4);
+ }
+ }
+ }
+
/**
* Versioning code until next subversion bump goes here.
*