Cleanup: sanitize BKE_libblock_copy_for_localize() copy flags.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 4 Feb 2019 17:23:50 +0000 (18:23 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 5 Feb 2019 09:53:16 +0000 (10:53 +0100)
Asking to not copy animdata, but copy actions, is pure nonsense (and
make LIB_ID_COPY_ACTIONS flag totally useless/no-op).

source/blender/blenkernel/intern/library.c

index 74c75b3281f1e943ed276dee79c2f41334a07a51..7484ca4d716a90abbb585b9d82c48c444452c1af 100644 (file)
@@ -1413,7 +1413,6 @@ void *BKE_libblock_copy_for_localize(const ID *id)
        ID *idn;
        BKE_libblock_copy_ex(NULL, id, &idn, (LIB_ID_CREATE_NO_MAIN |
                                              LIB_ID_CREATE_NO_USER_REFCOUNT |
-                                             LIB_ID_COPY_ACTIONS |
                                              LIB_ID_COPY_NO_ANIMDATA));
        return idn;
 }