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-31 20:21:30 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-05-31 20:21:30 +0400
commit966e004bbea6304840cd73f262d91a5e65464e5f (patch)
treeb9d4a9e233e471e2fa143e27b26058d6093c9d56 /intern/cycles/kernel/osl/osl_services.cpp
parentfc68daff582664bc1ccba57b9408973c5e8d83ec (diff)
Cycles: OSL build & image manager fixes.
Diffstat (limited to 'intern/cycles/kernel/osl/osl_services.cpp')
-rw-r--r--intern/cycles/kernel/osl/osl_services.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/osl/osl_services.cpp b/intern/cycles/kernel/osl/osl_services.cpp
index ded3a68d667..1b52a3e489b 100644
--- a/intern/cycles/kernel/osl/osl_services.cpp
+++ b/intern/cycles/kernel/osl/osl_services.cpp
@@ -176,6 +176,7 @@ static bool get_mesh_attribute(KernelGlobals *kg, const ShaderData *sd,
(derivatives)? &fval[1]: NULL, (derivatives)? &fval[2]: NULL);
}
else {
+ /* todo: this won't work when float3 has w component */
float3 *fval = (float3*)val;
fval[0] = triangle_attribute_float3(kg, sd, attr.elem, attr.offset,
(derivatives)? &fval[1]: NULL, (derivatives)? &fval[2]: NULL);