Hi Julien,

The system as it is now, uses materials from the Object or Mesh itself. This 
has its specific benefits and limits, but for me its not clear what replacing 
it with a direct linkage to a particle system would improve.

The only use case I can think of is when a user decides to link a particle 
system to other objects in a scene, and allow this way q shared material for 
particles.

Such a feature you could also code without changing the existing spec. Just add 
a material linkage option in the particle system, and make sure that choice (if 
set) overrides the index setting.

That way no versioning is needed, and old files would read/write in a way that 
still works in current and previous releases.

-Ton-

------------------------------------------------------------------------
Ton Roosendaal  Blender Foundation   [email protected]    www.blender.org
Blender Institute   Entrepotdok 57A  1018AD Amsterdam   The Netherlands

On 30 Mar, 2013, at 13:46, Julien Duroure wrote:

> Hi all,
> 
> I implemented some code to replace, in particle render section, the
> material index ( 1, 2 or 3 for example ), by a direct material choice (
> Material, Material.001, etc...)
> 
> Code is now OK, but I am currenly working on do_versions, to be able to
> open old files with this new "feature".
> 
> I try to implement this kind of code : http://pastebin.com/Czy3rfqZ
> But I have a segfault when access on part->omat.
> It seems to be linked to preview.blend objects.
> GDB said that psys->part adresse can't be access.
> 
> I don't know how preview exactly works : is there someome can explain me
> why I have this problem and how to correct it ?
> 
> Thanks & Regards,
> 
> Julien
> _______________________________________________
> Bf-committers mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-committers

_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to