if color representation is not valid use RGBA
@@ -1975,6 +1975,8 @@ OutputGeometryPart::computeMesh(
MFnMesh::MColorRepresentation colorRep = MFnMesh::MColorRepresentation::kRGBA;
if(useColorRep) {
if(layerIndex < (int) colorReps.length())
+ if(colorReps[layerIndex] == MFnMesh::MColorRepresentation::kRGB
+ || colorReps[layerIndex] == MFnMesh::MColorRepresentation::kAlpha)
colorRep = (MFnMesh::MColorRepresentation) colorReps[layerIndex];
}
#endif
