Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-03-20 18:59:49 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-20 19:26:21 +0300
commitc4908c8e8c6e29c09acadf5d2eec129fdacab5db (patch)
tree14bf85f346b5a63b9e3d3cd52b2498b02d5487e6 /intern
parent63cb789551537d8311f9f57e34876c11d692c6b5 (diff)
Fix T62758: hair curves with UV mapped textures renders wrong.
Differential Revision: https://developer.blender.org/D4562
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/render/attribute.cpp2
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;