Hello guys,
I'm trying to create a node which changes vertex colors of input mesh. But I probably miss some omportant point. First of all the node has mesh as an input and mesh as output. After I create my output mesh:
CODE
...
meshFS.create(vertexCount, polyCount, vertices, faceCounts, faces,
newOutputData,
//MObject::kNullObj
);
...
mehsFS.setVertexColors(colors, colorIndices);
...
All calls return success, I'm checking all of them in real code.
But the shading of the shape still stays the same (weel, if I'm using MObject::kNullObj as owner, it shades my vertices). If I go to Polygons->Edit Polygons->Colors->Paint Vertex Color Tool. It starts being shaded (I can see my colors instead of flat grey). So I guess there's some sort of property or set created, which I'm missing (i.e. nothing changes in HyperGraph nor Outliner). Could you please point what's wrong or give a hint where to look (I examined examples but failed to find anything similiar to start with).
Thank you