Blender Git Loki

Git Commits -> Revision a5db981

Revision a5db981 by Dalai Felinto (master)
September 9, 2020, 14:58 (GMT)
Fix T76346: Moving objects in outliner doesn't update local collections

The fix involves going over ALL the possible combinations of viewlayers
and viewports and re-sync.
I tested this with multiple windows, multiple scenes and multiple
viewlayers.

Since (for now?) the operation of syncing the local layer collections is
not too expensive, this is not so bad. In theory we could improve this
by checking if the collection the object was moved to and from is in the
scene before iterating over it. I don't think it is worthy though.

Thanks Arun Parolikkal for the initial attempt on D8342.
Final patch reviewed by Brecht Van Lommel.

Commit Details:

Full Hash: a5db981b0ea044313239c3cc2ee92d19a8f682ea
Parent Commit: f8aad78
Lines Changed: +25, -0

2 Modified Paths:

/source/blender/blenkernel/BKE_layer.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/layer.c (+24, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021