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/blenkernel/intern/brush.c | |
parent | c99d1d5d0db8ac7af0d479341e1bd87ead681387 (diff) |
Cleanup: Replace direct `id.lib` pointer checks with `ID_IS_LINKED` macro usages.
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index f091ebe1e32..4531783c72a 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -147,7 +147,7 @@ static void brush_make_local(Main *bmain, ID *id, const int flags) /* NOTE: assert below ensures that the comment above is valid, and that that exception is * acceptable for the time being. */ BKE_lib_id_make_local(bmain, &brush->clone.image->id, 0); - BLI_assert(brush->clone.image->id.lib == NULL && brush->clone.image->id.newid == NULL); + BLI_assert(!ID_IS_LINKED(brush->clone.image) && brush->clone.image->id.newid == NULL); } if (force_local) { |