Fix T70508: Wrong snapping default in Node Editor
This commit is contained in:
parent
7a100a3f60
commit
4761028fc7
Notes:
blender-bot
2023-02-14 00:57:33 +01:00
Referenced by issue #70508, Wrong snapping default in Node Editor
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue