diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-12-08 18:27:22 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-12-08 18:35:31 +0300 |
commit | 9454359a165767f04ef73316205eebf3161083ae (patch) | |
tree | 65eb1f61b9dc5f4f06580d406da5627b05cf03e3 /source/blender/blenkernel/intern/library_query.c | |
parent | 392c23bdb9b81e56a834e6ee034173c382851c38 (diff) |
Workspace: Clarifying library remap workaround
WorkSpaceLayout->screen will be made public soon, but meanwhile this makes it
clear why we are not passing layout->screen to CALLBACK_INVOKE in this case.
Diffstat (limited to 'source/blender/blenkernel/intern/library_query.c')
-rw-r--r-- | source/blender/blenkernel/intern/library_query.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c index 0bd1c5ff114..4074e0f0dc6 100644 --- a/source/blender/blenkernel/intern/library_query.c +++ b/source/blender/blenkernel/intern/library_query.c @@ -984,6 +984,8 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call for (WorkSpaceLayout *layout = layouts->first; layout; layout = layout->next) { bScreen *screen = BKE_workspace_layout_screen_get(layout); + /* CALLBACK_INVOKE expects an actual pointer, not a variable holding the pointer. + * However we can't acess layout->screen here since we are outside the workspace project. */ CALLBACK_INVOKE(screen, IDWALK_CB_NOP); /* allow callback to set a different screen */ BKE_workspace_layout_screen_set(layout, screen); |