Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/proxy.c
| Show All 13 Lines | |||||
| #include "DNA_sequence_types.h" | #include "DNA_sequence_types.h" | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| #include "BLI_fileops.h" | #include "BLI_fileops.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_path_util.h" | #include "BLI_path_util.h" | ||||
| #include "BLI_session_uuid.h" | #include "BLI_session_uuid.h" | ||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| #include "BLI_threads.h" | |||||
| #ifdef WIN32 | #ifdef WIN32 | ||||
| # include "BLI_winstuff.h" | # include "BLI_winstuff.h" | ||||
| #else | #else | ||||
| # include <unistd.h> | # include <unistd.h> | ||||
| #endif | #endif | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| ▲ Show 20 Lines • Show All 534 Lines • ▼ Show 20 Lines | |||||
| void SEQ_proxy_rebuild_finish(SeqIndexBuildContext *context, bool stop) | void SEQ_proxy_rebuild_finish(SeqIndexBuildContext *context, bool stop) | ||||
| { | { | ||||
| if (context->index_context) { | if (context->index_context) { | ||||
| StripAnim *sanim; | StripAnim *sanim; | ||||
| for (sanim = context->seq->anims.first; sanim; sanim = sanim->next) { | for (sanim = context->seq->anims.first; sanim; sanim = sanim->next) { | ||||
| IMB_close_anim_proxies(sanim->anim); | IMB_close_anim_proxies(sanim->anim); | ||||
| } | } | ||||
| SEQ_seqbase_lock(); | |||||
| /* `context->seq_orig` may have been removed during building. */ | /* `context->seq_orig` may have been removed during building. */ | ||||
| SEQ_for_each_callback(&context->scene->ed->seqbase, seq_orig_free_anims, context); | SEQ_for_each_callback(&context->scene->ed->seqbase, seq_orig_free_anims, context); | ||||
| SEQ_seqbase_unlock(); | |||||
| IMB_anim_index_rebuild_finish(context->index_context, stop); | IMB_anim_index_rebuild_finish(context->index_context, stop); | ||||
| } | } | ||||
| seq_free_sequence_recurse(NULL, context->seq, true); | seq_free_sequence_recurse(NULL, context->seq, true); | ||||
| MEM_freeN(context); | MEM_freeN(context); | ||||
| } | } | ||||
| Show All 31 Lines | |||||