Fix pretty stupid mistake in last 'append fix' commit (rB50c017b6eabd).
authorBastien Montagne <montagne29@wanadoo.fr>
Sun, 7 Aug 2016 08:02:17 +0000 (10:02 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Sun, 7 Aug 2016 08:02:17 +0000 (10:02 +0200)
source/blender/blenkernel/intern/library.c

index c981edf1ba7c083e557886f0bb9ebc961d303889..c5517265da37cad8c0e219dea15d172900407dc8 100644 (file)
@@ -1662,12 +1662,12 @@ void BKE_library_make_local(Main *bmain, const Library *lib, const bool untagged
 
                /* Do not explicitly make local non-linkable IDs (shapekeys, in fact), they are assumed to be handled
                 * by real datablocks responsible of them. */
-               const bool do_skip = (id && BKE_idcode_is_linkable(GS(id->name)));
+               const bool do_skip = (id && !BKE_idcode_is_linkable(GS(id->name)));
 
                for (; id; id = id_next) {
                        id->newid = NULL;
                        id_next = id->next;  /* id is possibly being inserted again */
-                       
+
                        /* The check on the second line (LIB_TAG_PRE_EXISTING) is done so its
                         * possible to tag data you don't want to be made local, used for
                         * appending data, so any libdata already linked wont become local