diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-10-07 16:01:55 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-10-07 16:02:12 +0300 |
commit | 4761028fc75a2c56a74d6b0994e5f20a2282b9df (patch) | |
tree | e87ace443dbcf211ac70d3dc40dd8e3aa896a731 /source/blender/blenloader | |
parent | 7a100a3f602ae6bec963ba537933722abf457368 (diff) |
Fix T70508: Wrong snapping default in Node Editor
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 7ea1d25f86d..6ea30cc1309 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -3844,6 +3844,14 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } + if (!MAIN_VERSION_ATLEAST(bmain, 281, 15)) { + LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { + if (scene->toolsettings->snap_node_mode == SCE_SNAP_MODE_NODE_X) { + scene->toolsettings->snap_node_mode = SCE_SNAP_MODE_GRID; + } + } + } + { /* Versioning code until next subversion bump goes here. */ if (!DNA_struct_elem_find( |