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/freestyle/intern/view_map/Interface1D.h')
-rw-r--r--source/blender/freestyle/intern/view_map/Interface1D.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/view_map/Interface1D.h b/source/blender/freestyle/intern/view_map/Interface1D.h
index e47a5ad8f31..7a72a176902 100644
--- a/source/blender/freestyle/intern/view_map/Interface1D.h
+++ b/source/blender/freestyle/intern/view_map/Interface1D.h
@@ -84,8 +84,9 @@ T integrate(UnaryFunction0D<T> &fun,
++it;
for (; !it.isEnd(); ++it) {
fun(it);
- if (fun.result < res)
+ if (fun.result < res) {
res = fun.result;
+ }
}
break;
case MAX:
@@ -94,8 +95,9 @@ T integrate(UnaryFunction0D<T> &fun,
++it;
for (; !it.isEnd(); ++it) {
fun(it);
- if (fun.result > res)
+ if (fun.result > res) {
res = fun.result;
+ }
}
break;
case FIRST: