Blender Git Loki

Git Commits -> Revision cba4479

Revision cba4479 by Bastien Montagne (master)
February 19, 2019, 12:49 (GMT)
Fix T61683: Linking the instance of a collection crashes Blender.

Do not instance linked object immediately in scene, this was never a
good idea and is doomed to fail nowadays, with complex relations between
objects, collections and scenes.

Instead, this commit refactors a bit linking code to add loose objects
to current scene *after* everything has been imported, and ID pointers
have been properly remapped to new ones - i.e. once new linked data is
supposed to be fully valid, just like we were already doing with
collections.

As a bonus, it means we do not have to pass around scene, view3d etc. to
`BLO_library_link_named_part_ex()` and co.

Commit Details:

Full Hash: cba447966ec51db48459e57d838e8b4562b96c5e
Parent Commit: 4df8896
Lines Changed: +14, -50

3 Modified Paths:

/source/blender/blenloader/BLO_readfile.h (+1, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+12, -45) (Diff)
/source/blender/windowmanager/intern/wm_files_link.c (+1, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021