[Bf-blender-cvs] [aa003c73245] master: FIX: `use_proxy` strip property state has no effect.
Richard Antalik
noreply at git.blender.org
Fri Jun 7 01:24:43 CEST 2019
Commit: aa003c73245f6727a472f843e0216b7f92ae0c64
Author: Richard Antalik
Date: Thu Jun 6 15:23:53 2019 -0700
Branches: master
https://developer.blender.org/rBaa003c73245f6727a472f843e0216b7f92ae0c64
FIX: `use_proxy` strip property state has no effect.
Author: Olly Funkster, Richard Antalík
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2504
===================================================================
M source/blender/blenkernel/intern/sequencer.c
M source/blender/makesrna/intern/rna_sequencer.c
===================================================================
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index 095e7e88193..ac242e35b03 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -3137,9 +3137,16 @@ static ImBuf *seq_render_movie_strip(const SeqRenderData *context,
{
ImBuf *ibuf = NULL;
StripAnim *sanim;
+
bool is_multiview = (seq->flag & SEQ_USE_VIEWS) != 0 &&
(context->scene->r.scemode & R_MULTIVIEW) != 0;
+ IMB_Proxy_Size proxy_size = seq_rendersize_to_proxysize(context->preview_render_size);
+
+ if ((seq->flag & SEQ_USE_PROXY) == 0) {
+ proxy_size = IMB_PROXY_NONE;
+ }
+
/* load all the videos */
seq_open_anim_file(context->scene, seq, false);
@@ -3158,7 +3165,6 @@ static ImBuf *seq_render_movie_strip(const SeqRenderData *context,
for (i = 0, sanim = seq->anims.first; sanim; sanim = sanim->next, i++) {
if (sanim->anim) {
- IMB_Proxy_Size proxy_size = seq_rendersize_to_proxysize(context->preview_render_size);
IMB_anim_set_preseek(sanim->anim, seq->anim_preseek);
ibuf_arr[i] = IMB_anim_absolute(sanim->anim,
@@ -3229,7 +3235,6 @@ static ImBuf *seq_render_movie_strip(const SeqRenderData *context,
monoview_movie:
sanim = seq->anims.first;
if (sanim && sanim->anim) {
- IMB_Proxy_Size proxy_size = seq_rendersize_to_proxysize(context->preview_render_size);
IMB_anim_set_preseek(sanim->anim, seq->anim_preseek);
ibuf = IMB_anim_absolute(sanim->anim,
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c
index 3915c989614..02b65e5a7b4 100644
--- a/source/blender/makesrna/intern/rna_sequencer.c
+++ b/source/blender/makesrna/intern/rna_sequencer.c
@@ -2022,6 +2022,7 @@ static void rna_def_proxy(StructRNA *srna)
RNA_def_property_ui_text(
prop, "Use Proxy / Timecode", "Use a preview proxy and/or timecode index for this strip");
RNA_def_property_boolean_funcs(prop, NULL, "rna_Sequence_use_proxy_set");
+ RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update");
prop = RNA_def_property(srna, "proxy", PROP_POINTER, PROP_NONE);
RNA_def_property_pointer_sdna(prop, NULL, "strip->proxy");
More information about the Bf-blender-cvs
mailing list