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-03-26 13:16:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-26 13:16:47 +0300
commitce3b78c73a7ccc16fdccf7decedb5d1578dfdf0a (patch)
tree87f1a9c41ebe6f74806f1ae76206f1d328c85700 /source/blender/editors/space_sequencer/sequencer_scopes.c
parent5279d118c2ddee0e6fef66aaf78452c1b302dd42 (diff)
Cleanup: style, use braces for editor/spaces
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_scopes.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_scopes.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_scopes.c b/source/blender/editors/space_sequencer/sequencer_scopes.c
index f93eaa5bce5..5ccd9e86e12 100644
--- a/source/blender/editors/space_sequencer/sequencer_scopes.c
+++ b/source/blender/editors/space_sequencer/sequencer_scopes.c
@@ -513,12 +513,15 @@ static ImBuf *make_histogram_view_from_ibuf_byte(ImBuf *ibuf)
nr = nb = ng = 0;
for (x = 0; x < HIS_STEPS; x++) {
- if (bins[0][x] > nr)
+ if (bins[0][x] > nr) {
nr = bins[0][x];
- if (bins[1][x] > ng)
+ }
+ if (bins[1][x] > ng) {
ng = bins[1][x];
- if (bins[2][x] > nb)
+ }
+ if (bins[2][x] > nb) {
nb = bins[2][x];
+ }
}
for (x = 0; x < HIS_STEPS; x++) {
@@ -598,12 +601,15 @@ static ImBuf *make_histogram_view_from_ibuf_float(ImBuf *ibuf)
nr = nb = ng = 0;
for (x = 0; x < HIS_STEPS; x++) {
- if (bins[0][x] > nr)
+ if (bins[0][x] > nr) {
nr = bins[0][x];
- if (bins[1][x] > ng)
+ }
+ if (bins[1][x] > ng) {
ng = bins[1][x];
- if (bins[2][x] > nb)
+ }
+ if (bins[2][x] > nb) {
nb = bins[2][x];
+ }
}
for (x = 0; x < HIS_STEPS; x++) {