fix for another error reported in [#26712], use count failing with 3 levels of linking.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 26 Oct 2012 05:33:06 +0000 (05:33 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 26 Oct 2012 05:33:06 +0000 (05:33 +0000)
source/blender/blenloader/intern/readfile.c

index 6152a8fa9140206396b6b833fca02220973648b2..464ffc0f2f3065edf1ccdfe3b34c61223f4225c5 100644 (file)
@@ -3415,7 +3415,7 @@ static void lib_link_particlesettings(FileData *fd, Main *main)
                                        /* if we have indexes, let's use them */
                                        for (dw = part->dupliweights.first; dw; dw = dw->next) {
                                                GroupObject *go = (GroupObject *)BLI_findlink(&part->dup_group->gobject, dw->index);
                                        /* if we have indexes, let's use them */
                                        for (dw = part->dupliweights.first; dw; dw = dw->next) {
                                                GroupObject *go = (GroupObject *)BLI_findlink(&part->dup_group->gobject, dw->index);
-                                               dw->ob = go ? go->ob : NULL;
+                                               dw->ob = go ? newlibadr(fd, part->id.lib, dw->ob) : NULL;
                                        }
                                }
                                else {
                                        }
                                }
                                else {