Commit: c4908c8e8c6e29c09acadf5d2eec129fdacab5db
Author: Jacques Lucke
Date:   Wed Mar 20 16:59:49 2019 +0100
Branches: blender2.7
https://developer.blender.org/rBc4908c8e8c6e29c09acadf5d2eec129fdacab5db

Fix T62758: hair curves with UV mapped textures renders wrong.

Differential Revision: https://developer.blender.org/D4562

===================================================================

M       intern/cycles/render/attribute.cpp

===================================================================

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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to