diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-09 16:44:53 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-09 16:53:03 +0300 |
commit | 18ecc8a78f9eba45e513f7903989ef88cffbdb54 (patch) | |
tree | e57af8abbd2d1cd6cc10c25777a2dc48d880f9da /source/blender/blenkernel/intern/library_query.c | |
parent | ff3cf93405e63fa367f64412bcfe96b382b24b38 (diff) |
Fix broken groupobject usercount handling.
As we can see in (original) read code, ob pointer in groupobject is actually a 'USER_ONE' case.
This was not done in 'add object to group' code, probably because we can assume objects always
have at least one user in that case? Made it explicit now. Also fixed foreach_ID_link looper.
In general we have waaayyyyyy too much 'own handling' of ID->us count in code currently,
will clean up that...
Diffstat (limited to 'source/blender/blenkernel/intern/library_query.c')
-rw-r--r-- | source/blender/blenkernel/intern/library_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c index a800b3d8834..002007e2a58 100644 --- a/source/blender/blenkernel/intern/library_query.c +++ b/source/blender/blenkernel/intern/library_query.c @@ -514,7 +514,7 @@ void BKE_library_foreach_ID_link(ID *id, LibraryIDLinkCallback callback, void *u Group *group = (Group *) id; GroupObject *gob; for (gob = group->gobject.first; gob; gob = gob->next) { - CALLBACK_INVOKE(gob->ob, IDWALK_NOP); + CALLBACK_INVOKE(gob->ob, IDWALK_USER_ONE); } break; } |