Blender Git Commit Log

Git Commits -> Revision 51e743c

Revision 51e743c by Campbell Barton (master)
March 5, 2019, 01:59 (GMT)
Fix T62199: Incorrect bpy.data.screens behavior

The screen identifier was set to the "layout_name" which isn't
guaranteed to be unique or even exist.

This meant `bpy.data.screens.keys()` could have duplicate keys,
even when not duplicated, these keys couldn't be used for
`bpy.data.screen[key]` access because internally ID's use names for
collection look-ups.

Make screens match other ID's, using the ID.name as the identifier.

Note: this change was from the initial workspace commit 7f564d74f9edaaa
Since then the layout selector has been removed so this isn't needed.

Commit Details:

Full Hash: 51e743c7fa0f0bddac45066bc162b5ca99586031
Parent Commit: 1df6a98
Lines Changed: +0, -1

1 Modified Path:

/source/blender/makesrna/intern/rna_screen.c (+0, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021