Blender Git Loki

Git Commits -> Revision 03a80fa

Revision 03a80fa by Brecht Van Lommel (master)
May 25, 2018, 09:16 (GMT)
Fix T55183, fix T55174: crashes with workspace / view layer relation.

Don't store pointers to ViewLayer in the workspace, only names. Add specific
relation type since the generic mechanism makes the code hard to follow.
Integrate with pointer restore for undo and library remapping code to avoid
data going out of sync.

Also add relation automatically if there doesn't exists one yet in
BKE_workspace_view_layer_get, because in general it's really hard to ensure
it will exist when making arbitrary scene changes.

Differential Revision: https://developer.blender.org/D3432

Commit Details:

Full Hash: 03a80facfc78178632086179e36f1c67128d5c09
Parent Commit: 08da282
Lines Changed: +132, -105

12 Modified Paths:

/source/blender/blenkernel/BKE_layer.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_workspace.h (+12, -1) (Diff)
/source/blender/blenkernel/intern/layer.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/library_query.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/workspace.c (+61, -19) (Diff)
/source/blender/blenloader/intern/readfile.c (+35, -63) (Diff)
/source/blender/blenloader/intern/writefile.c (+1, -9) (Diff)
/source/blender/editors/scene/scene_edit.c (+3, -2) (Diff)
/source/blender/editors/screen/workspace_edit.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+1, -1) (Diff)
/source/blender/makesdna/dna_workspace_types.h (+8, -4) (Diff)
/source/blender/makesrna/intern/rna_scene.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