Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show All 38 Lines | |||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_node.h" | #include "BKE_node.h" | ||||
| #include "BLO_readfile.h" | #include "BLO_readfile.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "readfile.h" | #include "readfile.h" | ||||
| #include "versioning_common.h" | #include "versioning_common.h" | ||||
| #include "SEQ_sequencer.h" | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "versioning_common.h" | #include "versioning_common.h" | ||||
| static void sort_linked_ids(Main *bmain) | static void sort_linked_ids(Main *bmain) | ||||
| { | { | ||||
| ListBase *lb; | ListBase *lb; | ||||
| FOREACH_MAIN_LISTBASE_BEGIN (bmain, lb) { | FOREACH_MAIN_LISTBASE_BEGIN (bmain, lb) { | ||||
| ▲ Show 20 Lines • Show All 381 Lines • ▼ Show 20 Lines | void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | * - "versioning_userdef.c", #blo_do_versions_userdef | ||||
| * - "versioning_userdef.c", #do_versions_theme | * - "versioning_userdef.c", #do_versions_theme | ||||
| * | * | ||||
| * \note Keep this message at the bottom of the function. | * \note Keep this message at the bottom of the function. | ||||
| */ | */ | ||||
| { | { | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | |||||
| SequencerToolSettings *tool_settings = SEQ_tool_settings_ensure(scene); | |||||
| tool_settings->snap_flag = SEQ_USE_SNAPPING | SEQ_SNAP_TO_PLAYHEAD | SEQ_SNAP_TO_STRIP_HOLD; | |||||
| tool_settings->snap_distance = 15; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||