Fix particle group use count option losing objects for linked groups. There

was no reason to go through newlibadr here, go->ob should already have the
right pointer.
This commit is contained in:
Brecht Van Lommel
2013-10-14 20:13:40 +00:00
parent 7e64342f43
commit afce7e071a

View File

@@ -3700,7 +3700,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);
dw->ob = go ? newlibadr(fd, part->id.lib, dw->ob) : NULL;
dw->ob = go ? go->ob : NULL;
}
}
else {