diff --git a/src/osgPlugins/dae/daeRGeometry.cpp b/src/osgPlugins/dae/daeRGeometry.cpp index 62198a8b2..dba412eea 100644 --- a/src/osgPlugins/dae/daeRGeometry.cpp +++ b/src/osgPlugins/dae/daeRGeometry.cpp @@ -928,7 +928,15 @@ void daeReader::resolveMeshArrays(const domP_Array& domPArray, if (color_source) { + // first try Vec4Array osg::ref_ptr array( createGeometryArray(sources[color_source], vertexIndicesIndexMap, readDoubleColors) ); + + // if no array matched try Vec3Array + if (!array) + { + array = createGeometryArray(sources[color_source], vertexIndicesIndexMap, readDoubleColors); + } + if (array.valid()) { geometry->setColorArray(array.get());