Blender Git Commit Log

Git Commits -> Revision 318f347

Revision 318f347 by Julian Eisel (soc-2016-layer_manager)
June 8, 2016, 00:39 (GMT)
Store array of all layer items in the layer tree

Coexists with LayerTree.items and LayerTreeItem.childs listbases which were used for recursive iterations over the layer tree (using BKE_layertree_iterate or BKE_layeritem_iterate_childs). However, it was a bit annoying having to use this everywhere, especially if many args had to be passed as void *. Also, iterative methods with arrays instead of listbases should give us a bit of speedup.
It's possible LayerTree.items will not be needed anymore, but will leave in for now.

Array is only used on BKE level so far.

Commit Details:

Full Hash: 318f347cd4f224185bb2020610c12a561ea40e25
Parent Commit: 07b09c9
Lines Changed: +57, -14

3 Modified Paths:

/source/blender/blenkernel/BKE_layer.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/layer.c (+48, -13) (Diff)
/source/blender/makesdna/DNA_space_types.h (+4, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021