Blender Git Commit Log

Git Commits -> Revision 25074be

Revision 25074be by Dalai Felinto (master)
February 9, 2018, 11:05 (GMT)
Fix collection syncing when creating new collections from the outliner

We were not passing a scene collection parent to the BKE_collection_add
function, which in turn made syncing not work.

Right now we:
* Explicitly pass the master collection in this case
* Fallback to the master collection in other cases

With unittest.

Commit Details:

Full Hash: 25074be697cb5726328aa5d064a60788c1da6aeb
Parent Commit: 37e53ca
Lines Changed: +55, -1

1 Added Path:

/tests/python/view_layer/test_collection_new_sync.py (+47, -0) (View)

4 Modified Paths:

/source/blender/blenkernel/intern/collection.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/layer.c (+1, -0) (Diff)
/source/blender/editors/space_outliner/outliner_collections.c (+2, -1) (Diff)
/tests/python/view_layer/CMakeLists.txt (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021