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:
authorCampbell Barton <ideasman42@gmail.com>2019-06-03 17:21:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-03 17:24:38 +0300
commit1f650c402d3b43eee7cb51c7d4f373ba82ac2116 (patch)
treeba2432fe9424ae545d3758d37ec8ebb0419a2ba5 /source/blender/makesrna/intern/rna_sequencer_api.c
parente3f2034e7b925bc7e31e65051842cf26d70a20bc (diff)
Cleanup: style, use braces in RNA
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;