Blender Git Loki
Git Commits -> Revision 30c92bf
Revision 30c92bf by Julian Eisel (soc-2016-layer_manager) May 28, 2016, 00:13 (GMT) |
Refactor how LayerTile is bound to LayerTree/LayerTreeItem Main benefit of this commit is that layer group relations and layer order are stored in LayerTree now (blendkernel struct), not in structs of the layer manager editor. Two things I'm still not happy with: * LayerTreeItem (blenkernel struct) now stores the LayerTile (layer manager editor struct) as void pointer. We need this to access the LayerTile from the LayerTreeItem, without expensive lookups. This could be solved by storing a hash table of LayerTiles though. * Added BKE_layertree_iterate which is a handy util, but we need it pretty often so we also need to add lots of structs for custom data storage. For order/group independent iterations we could use the hashtable mentioned above and iterate over it. |
Commit Details:
Full Hash: 30c92bf2767c8907a477e4838a5f27e9511a76d4
Parent Commit: d514efb
Lines Changed: +220, -104
8 Modified Paths:
/source/blender/blenkernel/BKE_layer.h (+14, -6) (Diff)
/source/blender/blenkernel/intern/layer.c (+64, -9) (Diff)
/source/blender/editors/space_layers/layers_draw.c (+32, -21) (Diff)
/source/blender/editors/space_layers/layers_intern.h (+3, -6) (Diff)
/source/blender/editors/space_layers/layers_ops.c (+48, -33) (Diff)
/source/blender/editors/space_layers/layers_util.c (+51, -19) (Diff)
/source/blender/editors/space_layers/space_layers.c (+3, -9) (Diff)
/source/blender/makesdna/DNA_space_types.h (+5, -1) (Diff)
/source/blender/blenkernel/intern/layer.c (+64, -9) (Diff)
/source/blender/editors/space_layers/layers_draw.c (+32, -21) (Diff)
/source/blender/editors/space_layers/layers_intern.h (+3, -6) (Diff)
/source/blender/editors/space_layers/layers_ops.c (+48, -33) (Diff)
/source/blender/editors/space_layers/layers_util.c (+51, -19) (Diff)
/source/blender/editors/space_layers/space_layers.c (+3, -9) (Diff)
/source/blender/makesdna/DNA_space_types.h (+5, -1) (Diff)