Fix T62758: hair curves with UV mapped textures renders wrong.
Differential Revision: https://developer.blender.org/D4562
This commit is contained in:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue