Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2021-08-26 16:01:14 +0300
committerBastien Montagne <bastien@blender.org>2021-08-26 16:01:14 +0300
commitedb95b3fcbb907fe4b93fecf9e398f41113b3ee4 (patch)
tree0f39a4b935d29a170ecaa887496a0a0ef4cae72a /source/blender/blenkernel/intern/nla.c
parent1bb2077250aed65e9445468161e01aa219a89624 (diff)
Cleanup: Use `ID_IS_LINKED` instead of direct `id.lib` pointer check.
Diffstat (limited to 'source/blender/blenkernel/intern/nla.c')
-rw-r--r--source/blender/blenkernel/intern/nla.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c
index 7ea0d991f4c..4ce2ae3c11f 100644
--- a/source/blender/blenkernel/intern/nla.c
+++ b/source/blender/blenkernel/intern/nla.c
@@ -2344,7 +2344,7 @@ void BKE_nla_blend_read_lib(BlendLibReader *reader, ID *id, ListBase *tracks)
/* we only care about the NLA strips inside the tracks */
LISTBASE_FOREACH (NlaTrack *, nlt, tracks) {
/* If linking from a library, clear 'local' library override flag. */
- if (id->lib != NULL) {
+ if (ID_IS_LINKED(id)) {
nlt->flag &= ~NLATRACK_OVERRIDELIBRARY_LOCAL;
}