Fix T60957: ASSERT when reloading double-linked file.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 30 Jan 2019 10:46:49 +0000 (11:46 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 30 Jan 2019 10:46:49 +0000 (11:46 +0100)
Kind of funny to see that this has been missing presumably since the
first version of library linking in Blender, and only gets noticed now.
Then again, that was not really a critical issue, iirc write code
ensures all libraries directly used get properly written, even if flags
are incorrect.

source/blender/blenkernel/intern/library.c

index a933bd939e8be124f4c2670a2bf2c4b615b8c9b7..1db36b459feb78ca229f67c1a57153ef57b67c66 100644 (file)
@@ -168,6 +168,7 @@ void id_lib_extern(ID *id)
                if (id->tag & LIB_TAG_INDIRECT) {
                        id->tag &= ~LIB_TAG_INDIRECT;
                        id->tag |= LIB_TAG_EXTERN;
+                       id->lib->parent = NULL;
                }
        }
 }