diff options
author | Jacques Lucke <jacques@blender.org> | 2021-02-04 13:31:01 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-02-04 13:31:01 +0300 |
commit | dff51d418a6499a9e90adc97ab2bb599de36a860 (patch) | |
tree | 95717c7d2e04d9b1dded8b770c34e2c2ba20a91e /source | |
parent | 4895d1f9cec43cd0c24f019c3d6de4cbc39d63af (diff) |
Fix: window manager can reference scenes and workspaces
This also fixes T83592 for me.
Differential Revision: https://developer.blender.org/D10046
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/lib_query.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/lib_query.c b/source/blender/blenkernel/intern/lib_query.c index 8be26fc8547..1fd51544ba7 100644 --- a/source/blender/blenkernel/intern/lib_query.c +++ b/source/blender/blenkernel/intern/lib_query.c @@ -416,13 +416,14 @@ bool BKE_library_id_can_use_idtype(ID *id_owner, const short id_type_used) return ELEM(id_type_used, ID_MA); case ID_SIM: return ELEM(id_type_used, ID_OB, ID_IM); + case ID_WM: + return ELEM(id_type_used, ID_SCE, ID_WS); case ID_IM: case ID_VF: case ID_TXT: case ID_SO: case ID_AR: case ID_AC: - case ID_WM: case ID_PAL: case ID_PC: case ID_CF: |