Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesrna/intern/rna_sequencer_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_sequencer_api.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer_api.c b/source/blender/makesrna/intern/rna_sequencer_api.c
index 9b22a87cdb9..a50f01afd78 100644
--- a/source/blender/makesrna/intern/rna_sequencer_api.c
+++ b/source/blender/makesrna/intern/rna_sequencer_api.c
@@ -70,8 +70,9 @@ static void rna_Sequence_swap_internal(Sequence *seq_self,
{
const char *error_msg;
- if (BKE_sequence_swap(seq_self, seq_other, &error_msg) == 0)
+ if (BKE_sequence_swap(seq_self, seq_other, &error_msg) == 0) {
BKE_report(reports, RPT_ERROR, error_msg);
+ }
}
static Sequence *alloc_generic_sequence(
@@ -404,11 +405,13 @@ static void rna_SequenceElements_pop(ID *id, Sequence *seq, ReportList *reports,
seq->len--;
se = seq->strip->stripdata;
- if (index > 0)
+ if (index > 0) {
memcpy(new_seq, se, sizeof(StripElem) * index);
+ }
- if (index < seq->len)
+ if (index < seq->len) {
memcpy(&new_seq[index], &se[index + 1], sizeof(StripElem) * (seq->len - index));
+ }
MEM_freeN(seq->strip->stripdata);
seq->strip->stripdata = new_seq;