Blender Git Loki

Git Commits -> Revision 432bd15

Revision 432bd15 by Dalai Felinto (master)
July 31, 2011, 11:12 (GMT)
bugfix [#28111] material.pop breaks mt->mat_nr

create a new parameter for materials.pop() to not remove material slot.
this way the mat_nr is still the old one.

for the default behaviour we now have material remapping (i.e. data_delete_material_index_id(id, index)).
This new function is brought from the material_slot remove function.

Commit Details:

Full Hash: 432bd158fbdb9d56f9499dcc0e465f4e148abbf3
SVN Revision: 38879
Parent Commit: f4a1dc4
Lines Changed: +66, -42

4 Modified Paths:

/source/blender/blenkernel/BKE_material.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/material.c (+62, -39) (Diff)
/source/blender/blenkernel/intern/mesh.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021