Blender Git Loki

Git Commits -> Revision 9db492d

Revision 9db492d by Julian Eisel (master)
April 22, 2018, 21:23 (GMT)
Cleanup: Get rid of ScrArea.butspacetype syncing with ScrArea.spacetype

The only real reason we need `butspacetype` is while switching areas, where we
need to delay the actual switch to the RNA _update callback since only there we
can access context.
So instead of trying to sync it with `spacetype`, only set while needed and
unset it afterwards (as in set to `SPACE_EMPTY`).

This should also allow us to re-use `butspacetype` in versioning code when
trying to read removed editors. It'll store the space type value of the removed
editor which we can then use on versioning.

For backwards compatibility, we store `butspacetype` with the value of
`spacetype`.

Commit Details:

Full Hash: 9db492de6dd07dca93f0de7dbfa92f811fe50765
Parent Commit: 9eaf006
Lines Changed: +21, -16

7 Modified Paths:

/source/blender/blenloader/intern/readfile.c (+1, -3) (Diff)
/source/blender/blenloader/intern/versioning_250.c (+0, -3) (Diff)
/source/blender/blenloader/intern/writefile.c (+4, -0) (Diff)
/source/blender/editors/screen/area.c (+4, -6) (Diff)
/source/blender/editors/screen/screen_edit.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+5, -1) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+6, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021