[Bf-blender-cvs] [0928fe87102] master: Fix T94651: Cycles error with pointcloud vector attribute

Brecht Van Lommel noreply at git.blender.org
Mon Jan 24 15:58:45 CET 2022


Commit: 0928fe8710291c4eec1e62fa06c06fc193252ae4
Author: Brecht Van Lommel
Date:   Mon Jan 24 15:53:48 2022 +0100
Branches: master
https://developer.blender.org/rB0928fe8710291c4eec1e62fa06c06fc193252ae4

Fix T94651: Cycles error with pointcloud vector attribute

===================================================================

M	intern/cycles/kernel/geom/point.h

===================================================================

diff --git a/intern/cycles/kernel/geom/point.h b/intern/cycles/kernel/geom/point.h
index 52a1e77d71a..23764d49095 100644
--- a/intern/cycles/kernel/geom/point.h
+++ b/intern/cycles/kernel/geom/point.h
@@ -81,7 +81,7 @@ ccl_device float3 point_attribute_float3(KernelGlobals kg,
 #  endif
 
   if (desc.element == ATTR_ELEMENT_VERTEX) {
-    return float4_to_float3(kernel_tex_fetch(__attributes_float4, desc.offset + sd->prim));
+    return kernel_tex_fetch(__attributes_float3, desc.offset + sd->prim);
   }
   else {
     return make_float3(0.0f, 0.0f, 0.0f);



More information about the Bf-blender-cvs mailing list