[Bf-blender-cvs] [256f091] master: Fix (unreported) foreach ID looper going over some psys' IDs twice...

Bastien Montagne noreply at git.blender.org
Wed Nov 11 15:00:01 CET 2015


Commit: 256f091cbd5e6098a2d53aff4b6f4fba0fe9af0a
Author: Bastien Montagne
Date:   Wed Nov 11 14:58:42 2015 +0100
Branches: master
https://developer.blender.org/rB256f091cbd5e6098a2d53aff4b6f4fba0fe9af0a

Fix (unreported) foreach ID looper going over some psys' IDs twice...

===================================================================

M	source/blender/blenkernel/intern/library_query.c

===================================================================

diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c
index 97f4a25..68e63c1 100644
--- a/source/blender/blenkernel/intern/library_query.c
+++ b/source/blender/blenkernel/intern/library_query.c
@@ -336,14 +336,6 @@ void BKE_library_foreach_ID_link(ID *id, LibraryIDLinkCallback callback, void *u
 			CALLBACK_INVOKE(object->gpd, IDWALK_USER);
 			CALLBACK_INVOKE(object->dup_group, IDWALK_USER);
 
-			if (object->particlesystem.first) {
-				ParticleSystem *psys;
-				for (psys = object->particlesystem.first; psys; psys = psys->next) {
-					CALLBACK_INVOKE(psys->target_ob, IDWALK_NOP);
-					CALLBACK_INVOKE(psys->parent, IDWALK_NOP);
-				}
-			}
-
 			if (object->pd) {
 				CALLBACK_INVOKE(object->pd->tex, IDWALK_USER);
 				CALLBACK_INVOKE(object->pd->f_source, IDWALK_NOP);




More information about the Bf-blender-cvs mailing list