Fix typo in new ID copying code.

This commit is contained in:
Bastien Montagne 2017-08-09 14:38:07 +02:00
parent 176ad9ecdd
commit cb02f5250d

@ -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) {