Blender Git Loki

Git Commits -> Revision fb0fc1d

Revision fb0fc1d by Bastien Montagne (master)
January 17, 2020, 18:59 (GMT)
Fix T73170: New Scene -> "Full Copy" Crashes Blender.

rBac723db57fd8ba5 makes proper remapping of all pointers in Scene...
including the object pointers of bases in ViewLayers.

Using `BKE_main_collection_sync_remap()` makes sense here anyway
(compared to `BKE_main_collection_sync()`, it additionally clears caches
in ViewLayers and Collections), this whole code makes a lot of
remapping.

Note that I do not really understand *why* that was working OK
before rBac723db57fd8ba5. I.E. *why* not remapping at all ViewLayers'
base object pointers seemed to be OK...

This whole collection/viewlayer caching is very hard to follow, and
really needs a full rework at some point (just as much as ID copying
code in general, and scene copying code in particular, in fact).

Commit Details:

Full Hash: fb0fc1d613317eef50fbd395829476ce0b932bfc
Parent Commit: 66ad94d
Lines Changed: +1, -1

1 Modified Path:

/source/blender/editors/object/object_relations.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021