Commit: 7e94e8fc7c6aa49888a118094f7d1e63fa3b4fed
Author: Kévin Dietrich
Date:   Tue Jul 5 01:02:52 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB7e94e8fc7c6aa49888a118094f7d1e63fa3b4fed

Set vertex colors scope to vertex.

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

M       source/blender/alembic/intern/abc_customdata.cc

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

diff --git a/source/blender/alembic/intern/abc_customdata.cc 
b/source/blender/alembic/intern/abc_customdata.cc
index 684fae7..84dfc52 100644
--- a/source/blender/alembic/intern/abc_customdata.cc
+++ b/source/blender/alembic/intern/abc_customdata.cc
@@ -40,6 +40,7 @@ extern "C" {
  * such data in a way that lets other DCC know what they are for. See comments
  * in the write code for the conventions. */
 
+using Alembic::AbcGeom::kVertexScope;
 using Alembic::AbcGeom::kFacevaryingScope;
 
 using Alembic::Abc::C4fArraySample;
@@ -143,9 +144,7 @@ static void write_uv(const OCompoundProperty &prop, const 
CDStreamConfig &config
 
 /* Convention to write Vertex Colors:
  * - C3fGeomParam/C4fGeomParam on the arbGeomParam
- * - set scope as face varying
- *
- * TODO(kevin): check scope.
+ * - set scope as vertex varying
  */
 static void write_mcol(const OCompoundProperty &prop, const CDStreamConfig 
&config, void *data, const char *name)
 {
@@ -180,7 +179,7 @@ static void write_mcol(const OCompoundProperty &prop, const 
CDStreamConfig &conf
 
        OC4fGeomParam::Sample sample(
                C4fArraySample(&buffer.front(), buffer.size()),
-               kFacevaryingScope);
+               kVertexScope);
 
        param.set(sample);
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to