Fix T94651: Cycles error with pointcloud vector attribute

This commit is contained in:
Brecht Van Lommel 2022-01-24 15:53:48 +01:00
parent 4c617c06e9
commit 0928fe8710
Notes: blender-bot 2023-02-14 02:43:21 +01:00
Referenced by issue #94651, Using a vector attribute in a pointcloud material shader results in CUDA error
1 changed files with 1 additions and 1 deletions

View File

@ -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);