handle RGBA colors in COLLADA files

metadata
Wenzel Jakob 2010-10-19 01:19:19 +02:00
parent 3d56ab699d
commit f43204426b
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ VertexData *fetchVertexData(Transform transform, std::ostream &os,
SLog(EWarn, "Found multiple sets of texture coordinates - ignoring!"); SLog(EWarn, "Found multiple sets of texture coordinates - ignoring!");
} }
} else if (semantic == "COLOR") { } else if (semantic == "COLOR") {
SAssert(accessor->getStride() == 3); SAssert(accessor->getStride() == 3 || accessor->getStride() == 4);
SAssert(result->typeToOffset[EVertexColor] == -1); SAssert(result->typeToOffset[EVertexColor] == -1);
result->hasNormals = true; result->hasNormals = true;
result->typeToOffset[EVertexColor] = offset; result->typeToOffset[EVertexColor] = offset;