From 1f650c402d3b43eee7cb51c7d4f373ba82ac2116 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 4 Jun 2019 00:21:57 +1000 Subject: Cleanup: style, use braces in RNA --- source/blender/makesrna/intern/rna_sequencer_api.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/blender/makesrna/intern/rna_sequencer_api.c') 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; -- cgit v1.2.3