[Bf-blender-cvs] [8a1df1c7b33] temp-D10103-nla_support_strip_overlap_during_transform: - fix error due to missing NULL check

Wayde Moss noreply at git.blender.org
Wed Jan 13 22:50:09 CET 2021


Commit: 8a1df1c7b33fd89260626c0e13f9e6e7d0f2c87e
Author: Wayde Moss
Date:   Wed Jan 13 16:49:12 2021 -0500
Branches: temp-D10103-nla_support_strip_overlap_during_transform
https://developer.blender.org/rB8a1df1c7b33fd89260626c0e13f9e6e7d0f2c87e

- fix error due to missing NULL check

===================================================================

M	source/blender/blenkernel/intern/nla.c

===================================================================

diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c
index a77e7a2d800..e540391bd6f 100644
--- a/source/blender/blenkernel/intern/nla.c
+++ b/source/blender/blenkernel/intern/nla.c
@@ -317,7 +317,7 @@ void BKE_nlatrack_insert_after(ListBase *nla_tracks,
    * before library overrides. So it must inserted after the last override. */
   if (prev == NULL) {
     NlaTrack *first_track = (NlaTrack *)nla_tracks->first;
-    if ((first_track->flag & NLATRACK_OVERRIDELIBRARY_LOCAL) == 0) {
+    if (first_track != NULL && (first_track->flag & NLATRACK_OVERRIDELIBRARY_LOCAL) == 0) {
       prev = first_track;
     }
   }



More information about the Bf-blender-cvs mailing list