Fix typo in new ID copying code.
[blender.git] / source / blender / blenkernel / intern / library.c
index 18e4f332dc22442267fe0cf5e48354b8ef5a90fd..8bc6465d98ee1b5fab034f61489bcbc5bd6c5f69 100644 (file)
@@ -1115,7 +1115,7 @@ void *BKE_libblock_alloc(Main *bmain, short type, const char *name, const int fl
        if (id) {
                id->icon_id = 0;
                *( (short *)id->name) = type;
-               if ((flag & LIB_ID_FREE_NO_USER_REFCOUNT) == 0) {
+               if ((flag & LIB_ID_CREATE_NO_USER_REFCOUNT) == 0) {
                        id->us = 1;
                }
                if ((flag & LIB_ID_CREATE_NO_MAIN) == 0) {