diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-03-20 18:59:49 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-20 19:26:21 +0300 |
commit | c4908c8e8c6e29c09acadf5d2eec129fdacab5db (patch) | |
tree | 14bf85f346b5a63b9e3d3cd52b2498b02d5487e6 | |
parent | 63cb789551537d8311f9f57e34876c11d692c6b5 (diff) |
Fix T62758: hair curves with UV mapped textures renders wrong.
Differential Revision: https://developer.blender.org/D4562
-rw-r--r-- | intern/cycles/render/attribute.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |