diff options
Diffstat (limited to 'intern/cycles/render/geometry.cpp')
-rw-r--r-- | intern/cycles/render/geometry.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/geometry.cpp b/intern/cycles/render/geometry.cpp index 455959512fd..29ac35f3f1f 100644 --- a/intern/cycles/render/geometry.cpp +++ b/intern/cycles/render/geometry.cpp @@ -426,6 +426,8 @@ void GeometryManager::update_svm_attributes(Device *, attr_map[index].w = NODE_ATTR_FLOAT2; else if (req.type == TypeRGBA) attr_map[index].w = NODE_ATTR_RGBA; + else if (req.type == TypeFloat4) + attr_map[index].w = NODE_ATTR_FLOAT4; else attr_map[index].w = NODE_ATTR_FLOAT3; @@ -448,6 +450,8 @@ void GeometryManager::update_svm_attributes(Device *, attr_map[index].w = NODE_ATTR_FLOAT2; else if (req.subd_type == TypeRGBA) attr_map[index].w = NODE_ATTR_RGBA; + else if (req.subd_type == TypeFloat4) + attr_map[index].w = NODE_ATTR_FLOAT4; else attr_map[index].w = NODE_ATTR_FLOAT3; |