From f43204426b69b7c4ab3267240244897a9d2d1038 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 19 Oct 2010 01:19:19 +0200 Subject: [PATCH] handle RGBA colors in COLLADA files --- src/converter/collada.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converter/collada.cpp b/src/converter/collada.cpp index 4ece9b96..2c11cf03 100644 --- a/src/converter/collada.cpp +++ b/src/converter/collada.cpp @@ -195,7 +195,7 @@ VertexData *fetchVertexData(Transform transform, std::ostream &os, SLog(EWarn, "Found multiple sets of texture coordinates - ignoring!"); } } else if (semantic == "COLOR") { - SAssert(accessor->getStride() == 3); + SAssert(accessor->getStride() == 3 || accessor->getStride() == 4); SAssert(result->typeToOffset[EVertexColor] == -1); result->hasNormals = true; result->typeToOffset[EVertexColor] = offset;