Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "SEQ_proxy.h" | #include "SEQ_proxy.h" | ||||
| #include "SEQ_render.h" | #include "SEQ_render.h" | ||||
| #include "SEQ_sequencer.h" | #include "SEQ_sequencer.h" | ||||
| #include "SEQ_time.h" | |||||
| #include "SEQ_transform.h" | |||||
| #include "BLO_readfile.h" | #include "BLO_readfile.h" | ||||
| #include "readfile.h" | #include "readfile.h" | ||||
| /* Make preferences read-only, use versioning_userdef.c. */ | /* Make preferences read-only, use versioning_userdef.c. */ | ||||
| #define U (*((const UserDef *)&U)) | #define U (*((const UserDef *)&U)) | ||||
| static eSpaceSeq_Proxy_RenderSize get_sequencer_render_size(Main *bmain) | static eSpaceSeq_Proxy_RenderSize get_sequencer_render_size(Main *bmain) | ||||
| ▲ Show 20 Lines • Show All 650 Lines • ▼ Show 20 Lines | if (node->type == node_type) { | ||||
| if (STREQ(socket->identifier, old_name)) { | if (STREQ(socket->identifier, old_name)) { | ||||
| strcpy(socket->identifier, new_name); | strcpy(socket->identifier, new_name); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void seq_update_meta_disp_range(Scene *scene, Editing *ed) | |||||
campbellbarton: This function isn't used anywhere. | |||||
| { | |||||
| LISTBASE_FOREACH_BACKWARD (MetaStack *, ms, &ed->metastack) { | |||||
| /* Update ms->disp_range from meta. */ | |||||
| if (ms->disp_range[0] == ms->disp_range[1]) { | |||||
| copy_v2_v2_int(ms->disp_range, &ms->parseq->startdisp); | |||||
| } | |||||
| /* Update meta strip endpoints. */ | |||||
| SEQ_transform_set_left_handle_frame(ms->parseq, ms->disp_range[0]); | |||||
| SEQ_transform_set_right_handle_frame(ms->parseq, ms->disp_range[1]); | |||||
| SEQ_transform_fix_single_image_seq_offsets(ms->parseq); | |||||
| /* Recalculate effects using meta strip. */ | |||||
| LISTBASE_FOREACH (Sequence *, seq, ms->oldbasep) { | |||||
| if (seq->seq2) { | |||||
| seq->start = seq->startdisp = max_ii(seq->seq1->startdisp, seq->seq2->startdisp); | |||||
| seq->enddisp = min_ii(seq->seq1->enddisp, seq->seq2->enddisp); | |||||
| } | |||||
| } | |||||
| /* Ensure that active seqbase points to active meta strip seqbase. */ | |||||
| MetaStack *active_ms = SEQ_meta_stack_active_get(ed); | |||||
| SEQ_seqbase_active_set(ed, &active_ms->parseq->seqbase); | |||||
| } | |||||
| } | |||||
| /* NOLINTNEXTLINE: readability-function-size */ | /* NOLINTNEXTLINE: readability-function-size */ | ||||
| void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) | void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) | ||||
| { | { | ||||
| UNUSED_VARS(fd); | UNUSED_VARS(fd); | ||||
| if (MAIN_VERSION_ATLEAST(bmain, 290, 2) && MAIN_VERSION_OLDER(bmain, 291, 1)) { | if (MAIN_VERSION_ATLEAST(bmain, 290, 2) && MAIN_VERSION_OLDER(bmain, 291, 1)) { | ||||
| /* In this range, the extrude manifold could generate meshes with degenerated face. */ | /* In this range, the extrude manifold could generate meshes with degenerated face. */ | ||||
| LISTBASE_FOREACH (Mesh *, me, &bmain->meshes) { | LISTBASE_FOREACH (Mesh *, me, &bmain->meshes) { | ||||
| ▲ Show 20 Lines • Show All 920 Lines • ▼ Show 20 Lines | void blo_do_versions_290(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) { | |||||
| seq_update_meta_disp_range(scene, SEQ_editing_get(scene, false)); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
This function isn't used anywhere.