Blender Git Commits

Blender Git "soc-2016-layer_manager" branch commits.

Page: 5 / 7

June 15, 2016, 23:44 (GMT)
Layer drag & drop reordering

Took some time to get logic to work like user's would expect it, but seems to work now.
June 12, 2016, 23:20 (GMT)
Use new array based iterator for object drawing
June 12, 2016, 22:33 (GMT)
Use array for storing object bases in layers

Reading bases of a layer from file still doesn't work :/
June 12, 2016, 01:47 (GMT)
Merge branch 'master' into soc-2016-layer_manager
June 12, 2016, 01:46 (GMT)
Fix new layer based object drawing not used
June 12, 2016, 01:27 (GMT)
Fix undo/redo and file read/write

Storing/reading objects assigned to layers currently crashes since there's no support for GHash read/write. Will probably change into array/listbase since GHash doesn't make much sense here anyway.
June 8, 2016, 22:22 (GMT)
Use new, fast and simple array iterator instead of recursive iterator

Group positioning needs to be fixed after this, will check soon.
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.
June 7, 2016, 16:45 (GMT)
Merge branch 'master' into soc-2016-layer_manager

Conflicts:
source/blender/editors/interface/interface_handlers.c
June 5, 2016, 22:25 (GMT)
Fix undo and file reading after deleting layer with content
June 5, 2016, 21:48 (GMT)
Reduce memory allocations in layer remove operator
June 5, 2016, 18:09 (GMT)
Cleanup: Add/correct comments
June 5, 2016, 18:02 (GMT)
Fix compiling/viewport drawing with WITH_ADVANCED_LAYERS disabled
June 5, 2016, 17:48 (GMT)
Cleanup: Add comments, improve naming, etc
June 5, 2016, 17:07 (GMT)
Viewport: Draw objects by iterating over layers

Instead of iterating over all objects, we now iterate over layers and the objects inside of them. Later we can skip invisible layers, but they are not supported yet.
Objects assigned to multiple layers are currently drawn multiple times, we can avoid this (although it *might* be useful in some cases).

Since current code allows objects not being assigned to any layer, un-assigned objects are not drawn at all. To fix this you need to assign them to a layer.
June 5, 2016, 15:30 (GMT)
Correction to previous commit
June 5, 2016, 15:25 (GMT)
Support assigning objects to layers

Selected objects are now assigned to selected layers by pressing the M-key in the layer manager editor. Nothing visible happens then, but objects are now assigned to the layer.
Deleting a layer now invokes a popup from which the user can choose to select the layer with or without content.

Code still needs more work, but this depends on other changes. Undo/redo and file read/write doesnt' work yet, it's simply crashing.
June 4, 2016, 22:18 (GMT)
Add common shortcuts

X/Del - Delete layers
Ctrl+G - Add selected to new group
Ctrl+N - Add new layer
June 4, 2016, 19:45 (GMT)
Cleanup: Avoid hardcoded view coordinates
June 4, 2016, 18:15 (GMT)
Invert layer drawing order: Top to bottom instead of bottom to top

Convention in Blender is to use top to bottom, not the other way around.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021