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
This commit is contained in:
parent
be451354c9
commit
0e4245bc28
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue