Fix T62758: hair curves with UV mapped textures renders wrong.
Differential Revision: https://developer.blender.org/D4562
This commit is contained in:
@@ -475,6 +475,8 @@ Attribute *AttributeSet::add(AttributeStandard std, ustring name)
|
|||||||
else if(curve_mesh) {
|
else if(curve_mesh) {
|
||||||
switch(std) {
|
switch(std) {
|
||||||
case ATTR_STD_UV:
|
case ATTR_STD_UV:
|
||||||
|
attr = add(name, TypeFloat2, ATTR_ELEMENT_CURVE);
|
||||||
|
break;
|
||||||
case ATTR_STD_GENERATED:
|
case ATTR_STD_GENERATED:
|
||||||
attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_CURVE);
|
attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_CURVE);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user