[Bf-blender-cvs] [5fca35e4942] cycles_procedural_api: fix data type for vertex colors

Kévin Dietrich noreply at git.blender.org
Sat Oct 3 04:18:22 CEST 2020


Commit: 5fca35e49421844854647fb655a918d5123be483
Author: Kévin Dietrich
Date:   Mon Sep 28 14:56:56 2020 +0200
Branches: cycles_procedural_api
https://developer.blender.org/rB5fca35e49421844854647fb655a918d5123be483

fix data type for vertex colors

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

M	intern/cycles/render/alembic.cpp

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

diff --git a/intern/cycles/render/alembic.cpp b/intern/cycles/render/alembic.cpp
index 403b2fa62b3..1b60540ba27 100644
--- a/intern/cycles/render/alembic.cpp
+++ b/intern/cycles/render/alembic.cpp
@@ -293,7 +293,7 @@ void AlembicObject::read_attribute(const ICompoundProperty &arb_geom_params,
 
       if (param.getScope() == kVaryingScope) {
         attribute.element = ATTR_ELEMENT_CORNER_BYTE;
-        attribute.type_desc = TypeDesc::TypeColor;
+        attribute.type_desc = TypeRGBA;
         attribute.data.resize(data_cache.triangles.size() * 3 * sizeof(uchar4));
 
         uchar4 *data_uchar4 = reinterpret_cast<uchar4 *>(attribute.data.data());



More information about the Bf-blender-cvs mailing list