I’ve been updating an export script I wrote eons ago and came across the following problem. If I use the following code (on 2.25)
obj = Blender.Object.GetSelected() hasCol = obj.getData().has_col hasUV = obj.getData().has_uv
And I’ve got a mesh selected w/ vertex colours (but no tex) hasCol is TRUE and hasUV is FALSE, as it should.
As soon as I enter face mode and map uv coords hasUV becomes TRUE as it should, but from then on hasCol becomes forver FALSE, even though the mesha has both colours and uv!!
Anyone knows how to get around this? Or am I using deprecated fields that are no longer in use? (I do remember this being a problem on older versions too, so it’s not exclusive to 2.25)