[Bf-blender-cvs] [1f66f88] cycles-ptex-24: Move Cycles' Ptex attribute from vertices to corners
Nicholas Bishop
noreply at git.blender.org
Fri Jan 30 18:00:13 CET 2015
Commit: 1f66f88e45d8f44e1f4ecdc45fb5227fa2b50f65
Author: Nicholas Bishop
Date: Mon Jan 19 16:00:32 2015 +0100
Branches: cycles-ptex-24
https://developer.blender.org/rB1f66f88e45d8f44e1f4ecdc45fb5227fa2b50f65
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