diff options
author | Bastien Montagne <bastien@blender.org> | 2022-02-17 19:07:25 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-02-17 19:08:00 +0300 |
commit | b5e3700b793f730b404315493ceadb60e4af708d (patch) | |
tree | 6d5374dcbe17ef359dd0c05ce90e1202e30322c0 /source/blender/editors | |
parent | c99d1d5d0db8ac7af0d479341e1bd87ead681387 (diff) |
Cleanup: Replace direct `id.lib` pointer checks with `ID_IS_LINKED` macro usages.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/util/ed_util_ops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/ed_util_ops.cc b/source/blender/editors/util/ed_util_ops.cc index 014944da916..25deacbcdd1 100644 --- a/source/blender/editors/util/ed_util_ops.cc +++ b/source/blender/editors/util/ed_util_ops.cc @@ -226,7 +226,7 @@ static int lib_id_fake_user_toggle_exec(bContext *C, wmOperator *op) ID *id = (ID *)idptr.data; - if ((id->lib != nullptr) || (ELEM(GS(id->name), ID_GR, ID_SCE, ID_SCR, ID_TXT, ID_OB, ID_WS))) { + if (ID_IS_LINKED(id) || (ELEM(GS(id->name), ID_GR, ID_SCE, ID_SCR, ID_TXT, ID_OB, ID_WS))) { BKE_report(op->reports, RPT_ERROR, "Data-block type does not support fake user"); return OPERATOR_CANCELLED; } |