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/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++) {