[Bf-committers] Re: [Bf-blender-cvs] CVS commit:
blender/source/blender/blenkernel/intern
customdata.c blender/source/blender/python/api2_2x Mesh.c
Brecht Van Lommel
brechtvanlommel at pandora.be
Thu Nov 23 09:23:25 CET 2006
Hi,
The comment in that function is wrong, forgot to update it, shouldn't
say anything about texture faces. I think the problem is that colors are
now stored separate from tfaces, so e.g. Mesh.faceUV doesn't imply
anymore that colors exist. Not sure what the best solution is for that.
Should compatibility be dropped, or should Mesh.faceUV still check for
or create both tfaces and colors?
Brecht.
Campbell Barton wrote:
> Hi Brecht, at the moment Im getting this error popping up in various
> scripts
> ValueError: face has no vertex colors
>
>
> Im using Mesh not NMesh and the error is here
>
> static PyObject *MFace_getCol( BPy_MFace * self )
> {
> PyObject *attr;
> int length, i;
> MCol * mcol;
>
> /* if there's no mesh color vectors or texture faces, nothing to do */
>
> if( !self->mesh->mcol )
> return EXPP_ReturnPyObjError( PyExc_ValueError,
> "face has no vertex colors" );
>
>
> - Shouldnt per face colors still be supported?
More information about the Bf-committers
mailing list