[Bf-blender-cvs] [758c1151032] master: Fix own crash in today's rBf68288a8746f.

Bastien Montagne noreply at git.blender.org
Thu May 27 19:32:41 CEST 2021


Commit: 758c115103284bf1657d3b3c74529c551d5d55ad
Author: Bastien Montagne
Date:   Thu May 27 19:30:23 2021 +0200
Branches: master
https://developer.blender.org/rB758c115103284bf1657d3b3c74529c551d5d55ad

Fix own crash in today's rBf68288a8746f.

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

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

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

diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c
index aeef6c04944..0e2317c72de 100644
--- a/source/blender/blenkernel/intern/lib_override.c
+++ b/source/blender/blenkernel/intern/lib_override.c
@@ -1329,7 +1329,7 @@ static void lib_override_library_main_resync_on_library_indirect_level(
 
     if (id->tag & LIB_TAG_LIB_OVERRIDE_NEED_RESYNC) {
       CLOG_INFO(&LOG, 4, "ID %s (%p) was already tagged as needing resync", id->name, id->lib);
-      if (id->lib->temp_index > library_indirect_level) {
+      if (id->lib != NULL && id->lib->temp_index > library_indirect_level) {
         CLOG_ERROR(
             &LOG,
             "While processing indirect level %d, ID %s from lib %s of indirect level %d detected "
@@ -1363,7 +1363,7 @@ static void lib_override_library_main_resync_on_library_indirect_level(
                   id->lib,
                   id_to->name,
                   id_to->lib);
-        if (id->lib->temp_index > library_indirect_level) {
+        if (id->lib != NULL && id->lib->temp_index > library_indirect_level) {
           CLOG_ERROR(&LOG,
                      "While processing indirect level %d, ID %s from lib %s of indirect level %d "
                      "detected "



More information about the Bf-blender-cvs mailing list