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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-05-16 12:08:37 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-05-16 12:08:37 +0400
commit25b25059efd774cf119ac62dfdbd39a314f07b00 (patch)
tree9426df91f73c5e81cd4676ccd3af8cecaa2941c2 /intern/cycles/kernel/svm/svm_math.h
parent233f27a7e17c71d89efbcdf49f744639b20fc613 (diff)
Cycles: fix vector math subtract not working correct, patch by Sanne.
Diffstat (limited to 'intern/cycles/kernel/svm/svm_math.h')
-rw-r--r--intern/cycles/kernel/svm/svm_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/svm_math.h b/intern/cycles/kernel/svm/svm_math.h
index 6650a10a4d9..401bd22b45a 100644
--- a/intern/cycles/kernel/svm/svm_math.h
+++ b/intern/cycles/kernel/svm/svm_math.h
@@ -121,7 +121,7 @@ __device void svm_vector_math(float *Fac, float3 *Vector, NodeVectorMath type, f
*Fac = (fabsf(Vector->x) + fabsf(Vector->y) + fabsf(Vector->z))/3.0f;
}
else if(type == NODE_VECTOR_MATH_SUBTRACT) {
- *Vector = Vector1 + Vector2;
+ *Vector = Vector1 - Vector2;
*Fac = (fabsf(Vector->x) + fabsf(Vector->y) + fabsf(Vector->z))/3.0f;
}
else if(type == NODE_VECTOR_MATH_AVERAGE) {