[Bf-python] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x Mesh.c

Martin Poirier theeth at yahoo.com
Fri Dec 30 22:06:16 CET 2005



--- Yann Vernier <yann at donkey.dyndns.org> wrote:

> On Fri, Dec 30, 2005 at 09:06:18AM -0800, Martin
> Poirier wrote:
> > BPy doesn't take into account the bitfield that
> > specifies if the material comes from the object or
> > from the obdata, it always assumes obdata. Making
> it
> > work correctly would need some good changes in how
> we
> > handle material lists since the bitfield is per
> > object, specifying for each slot where to take the
> > material.
> > Technically, there is two "real" material lists
> (ob
> > and obdata) and the effective material list
> > (intersection of the two based on the bitfield).
> 
> Aren't both lists accessible from python (in object
> and its data) as
> well as the bitmask itself? I've had an importer
> script which relies on
> making material lists in obdata with holes so some
> materials could be
> chosen per object. I had to add the support for None
> as those holes,
> however.

That's not what I'd call taking into account, that's
just giving full responsability to the script writer,
while it should make their life easier with a
powerfull abstraction.

Besides, having tp manipulate a bitfield in python is
distasteful at best.

Martin


	
		
__________________________________ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/



More information about the Bf-python mailing list