From c4908c8e8c6e29c09acadf5d2eec129fdacab5db Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 20 Mar 2019 16:59:49 +0100 Subject: Fix T62758: hair curves with UV mapped textures renders wrong. Differential Revision: https://developer.blender.org/D4562 --- intern/cycles/render/attribute.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern') diff --git a/intern/cycles/render/attribute.cpp b/intern/cycles/render/attribute.cpp index 0ce30b3bca6..f7788b6a490 100644 --- a/intern/cycles/render/attribute.cpp +++ b/intern/cycles/render/attribute.cpp @@ -475,6 +475,8 @@ Attribute *AttributeSet::add(AttributeStandard std, ustring name) else if(curve_mesh) { switch(std) { case ATTR_STD_UV: + attr = add(name, TypeFloat2, ATTR_ELEMENT_CURVE); + break; case ATTR_STD_GENERATED: attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_CURVE); break; -- cgit v1.2.3