diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-11 15:28:06 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-11 15:28:28 +0300 |
commit | d4d03f736b85f9db0d738428cf9521b2084232db (patch) | |
tree | a7d21e09d1f628f2ab70a9268a31d16dc25f8164 /source/blender | |
parent | fade765bf3488676141b28556969130eef9b70bb (diff) |
Fix (unreported): crash on undo when using pinned id in spreadsheet
Now the behavior is the same as in the properties editor, as far as I can tell.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index de7353d827a..302abf35f1c 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2985,6 +2985,12 @@ static void lib_link_workspace_layout_restore(struct IDNameLib_Map *id_map, sclip->scopes.ok = 0; } + else if (sl->spacetype == SPACE_SPREADSHEET) { + SpaceSpreadsheet *sspreadsheet = (SpaceSpreadsheet *)sl; + + sspreadsheet->pinned_id = restore_pointer_by_name( + id_map, sspreadsheet->pinned_id, USER_IGNORE); + } } } } |