[Bf-blender-cvs] [f4317a9] cycles-ptex-49: Move Cycles' Ptex attribute from vertices to corners

Nicholas Bishop noreply at git.blender.org
Fri Feb 6 17:34:59 CET 2015


Commit: f4317a97891afd47080bdee403c0ae9e1951feeb
Author: Nicholas Bishop
Date:   Mon Jan 19 16:00:32 2015 +0100
Branches: cycles-ptex-49
https://developer.blender.org/rBf4317a97891afd47080bdee403c0ae9e1951feeb

Move Cycles' Ptex attribute from vertices to corners

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

M	intern/cycles/render/attribute.cpp

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

diff --git a/intern/cycles/render/attribute.cpp b/intern/cycles/render/attribute.cpp
index bf83c97..15d7134 100644
--- a/intern/cycles/render/attribute.cpp
+++ b/intern/cycles/render/attribute.cpp
@@ -359,7 +359,7 @@ Attribute *AttributeSet::add(AttributeStandard std, ustring name)
 				attr = add(name, TypeDesc::TypeFloat, ATTR_ELEMENT_FACE);
 				break;
 			case ATTR_STD_PTEX_UV:
-				attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_VERTEX);
+				attr = add(name, TypeDesc::TypePoint, ATTR_ELEMENT_CORNER);
 				break;
 			case ATTR_STD_GENERATED_TRANSFORM:
 				attr = add(name, TypeDesc::TypeMatrix, ATTR_ELEMENT_MESH);




More information about the Bf-blender-cvs mailing list