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

Differential Revision: https://developer.blender.org/D4562
This commit is contained in:
Jacques Lucke 2019-03-20 16:59:49 +01:00 committed by Brecht Van Lommel
parent 63cb789551
commit c4908c8e8c

@ -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;