Cleanup: use proper bitflag operators.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 30 Jan 2019 10:38:13 +0000 (11:38 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 30 Jan 2019 10:38:13 +0000 (11:38 +0100)
source/blender/blenkernel/intern/library.c

index 1583f47adac12aff5412762904d2b4d23d0a8b7d..a933bd939e8be124f4c2670a2bf2c4b615b8c9b7 100644 (file)
@@ -166,7 +166,7 @@ void id_lib_extern(ID *id)
        if (id && ID_IS_LINKED(id)) {
                BLI_assert(BKE_idcode_is_linkable(GS(id->name)));
                if (id->tag & LIB_TAG_INDIRECT) {
-                       id->tag -= LIB_TAG_INDIRECT;
+                       id->tag &= ~LIB_TAG_INDIRECT;
                        id->tag |= LIB_TAG_EXTERN;
                }
        }