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:
authorPhilipp Oeser <info@graphics-engineer.com>2021-06-30 16:13:10 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-06-30 16:15:32 +0300
commit0e4245bc28e6aec90d02cf681c8ec0839e9f15e0 (patch)
treee3b60ae12fb618af25d77e8447d0a72b191b500c
parentbe451354c9251d816b0e2950e334ae44931f6166 (diff)
Fix T89554: UV snapping broken
Caused by {rBfba9cd019f21}. Above commit reordered toolsettings snapping flags but missed remapping these for the UV toolsettings in versioning code. Differential Revision: https://developer.blender.org/D11756
-rw-r--r--source/blender/blenloader/intern/versioning_300.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index cc350528518..b5220f49aa8 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -438,6 +438,7 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
tool_settings->snap_flag |= SCE_SNAP_SEQ;
short snap_mode = tool_settings->snap_mode;
short snap_node_mode = tool_settings->snap_node_mode;
+ short snap_uv_mode = tool_settings->snap_uv_mode;
tool_settings->snap_mode &= ~((1 << 4) | (1 << 5) | (1 << 6));
tool_settings->snap_node_mode &= ~((1 << 5) | (1 << 6));
if (snap_mode & (1 << 4)) {
@@ -455,6 +456,9 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain)
if (snap_node_mode & (1 << 6)) {
tool_settings->snap_node_mode |= (1 << 1); /* SCE_SNAP_MODE_NODE_Y */
}
+ if (snap_uv_mode & (1 << 4)) {
+ tool_settings->snap_uv_mode |= (1 << 6); /* SCE_SNAP_MODE_INCREMENT */
+ }
SequencerToolSettings *sequencer_tool_settings = SEQ_tool_settings_ensure(scene);
sequencer_tool_settings->snap_mode = SEQ_SNAP_TO_STRIPS | SEQ_SNAP_TO_PLAYHEAD |