Blender Git Loki

Git Commits -> Revision a8d1c89

Revision a8d1c89 by Campbell Barton (master)
August 13, 2013, 10:21 (GMT)
make materials.pop() and more like pythons list.pop
- allow negative index values.
- error when invalid index value are passed in.
- remove last item if no index argument is given.

also change behavior to remove the material slot, it was only clearning by default but the list length remained the same.

Commit Details:

Full Hash: a8d1c893e8cea727d24f0bd8c64732fadcbcbcf2
SVN Revision: 59110
Parent Commit: 4d5c643
Lines Changed: +45, -32

3 Modified Paths:

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