Blender Git Commit Log

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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021