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:
authorTon Roosendaal <ton@blender.org>2004-01-05 00:32:50 +0300
committerTon Roosendaal <ton@blender.org>2004-01-05 00:32:50 +0300
commitdbce416607f18c21f4dbc7f6e7d06ef1269c488b (patch)
treeace76bd3938da7cb87edf033e488d63f8b913b6a /source/blender/render
parentd3e1fc887026d21df8a2791bc8ee3a929962a8a8 (diff)
- oren nayar call didnt return float value... but still worked on my
system, and gcc refuses to see it as warning. weirdos! this caused previewrender to show black for oren nayar.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/rendercore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/rendercore.c b/source/blender/render/intern/source/rendercore.c
index 1613ab1a7ca..9406fec1abb 100644
--- a/source/blender/render/intern/source/rendercore.c
+++ b/source/blender/render/intern/source/rendercore.c
@@ -1543,7 +1543,7 @@ float OrenNayar_Diff_i(float nl, float *n, float *l, float *v, float rough )
float OrenNayar_Diff(float *n, float *l, float *v, float rough )
{
float nl= n[0]*l[0] + n[1]*l[1] + n[2]*l[2];
- OrenNayar_Diff_i(nl, n, l, v, rough);
+ return OrenNayar_Diff_i(nl, n, l, v, rough);
}