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
Notes: blender-bot 2023-02-14 05:43:04 +01:00
Referenced by issue #62758, Hair with a bitmap texture renders incorrect
1 changed files with 2 additions and 0 deletions

View File

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