[Bf-blender-cvs] [cb02f5250d2] master: Fix typo in new ID copying code.
Bastien Montagne
noreply at git.blender.org
Wed Aug 9 15:13:15 CEST 2017
Commit: cb02f5250d235cebf518604eea2349b003f15317
Author: Bastien Montagne
Date: Wed Aug 9 14:38:07 2017 +0200
Branches: master
https://developer.blender.org/rBcb02f5250d235cebf518604eea2349b003f15317
Fix typo in new ID copying code.
===================================================================
M source/blender/blenkernel/intern/library.c
===================================================================
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index 18e4f332dc2..8bc6465d98e 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -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) {
More information about the Bf-blender-cvs
mailing list