[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/release/scripts/bpymodules BPyMesh.py blender/source/blender/python/api2_2x Mesh.c

Campbell Barton cbarton at metavr.com
Wed May 10 05:34:39 CEST 2006


Martin Poirier wrote:
> --- Campbell Barton <cbarton at metavr.com> wrote:
>
>   
>> campbellbarton (Campbell Barton) 2006/05/10 03:38:02
>> CEST
>>
>>   Modified files:
>>     blender/release/scripts/bpymodules BPyMesh.py 
>>     blender/source/blender/python/api2_2x Mesh.c 
>>   
>>   Log:
>>   made mesh's getFromObject pick the materials from
>> object or obdata as set by the objects colbits.
>>   its crufty that None of the exports currently
>> export materials correctly, hopefully this will
>> help.
>>     
>
> Doesn't this potentially breaks mesh manipulation
> scripts?
>
> IIRC, PutRaw doesn't deal with colbits, so it would
> take the materials list (where some might be from the
> object) and apply it back to the mesh.
>
> Not good.
>
> Martin
>   

This should be okay since you can still get/set the materials from the 
objects mesh.
its only the "getFromObject" - also thats effected, its not likely to 
break any scripts, since mesh is new. and all the scripts I have seen so 
far dont even use colbits not even NMesh.
- Try searching blenders scripts for colbits :)

Its not impossible that this change breaks existing scripts, but its 
unlikely.
"breaking"- would just be that is uses the object materials where set. 
which is more often then not, what the user wants to do anyway.

- Cam

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241


More information about the Bf-committers mailing list