[Bf-blender-cvs] [6434d6c] cycles-ptex-12: Move Cycles' Ptex attribute from vertices to corners

Nicholas Bishop noreply at git.blender.org
Mon Jan 26 02:04:40 CET 2015


Commit: 6434d6c0a240580e2d5f9cde903bb44c51b69288
Author: Nicholas Bishop
Date:   Mon Jan 19 16:00:32 2015 +0100
Branches: cycles-ptex-12
https://developer.blender.org/rB6434d6c0a240580e2d5f9cde903bb44c51b69288

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