diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-30 16:00:32 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-30 16:42:09 +0300 |
commit | 5737193d81a15892f1807b13bf0a5da001c2e2e4 (patch) | |
tree | 5968b8e85023bba6f09a3d7bd667e0c826ff631f /source/blender/blenloader/intern/versioning_300.c | |
parent | 8de8ab38f60903fdf973f287f00152c669d09272 (diff) |
Fix bad versioning of snapping flags
If the value of a macro has changed. We need to change all references to
that macro in the versioning code.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_300.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index b5220f49aa8..4272f32032d 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -441,6 +441,7 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) 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)); + tool_settings->snap_uv_mode &= ~(1 << 4); if (snap_mode & (1 << 4)) { tool_settings->snap_mode |= (1 << 6); /* SCE_SNAP_MODE_INCREMENT */ } |