Fix compilation error: Shadowing of variable
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 8 Sep 2016 07:40:25 +0000 (09:40 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 8 Sep 2016 07:40:25 +0000 (09:40 +0200)
source/blender/blenkernel/intern/particle.c

index 907521c9677d3d949c559c478241dd4aca05271f..70fd638ce13a2ed83e4e4525ce6b899d81813a1f 100644 (file)
@@ -323,7 +323,7 @@ void psys_check_group_weights(ParticleSettings *part)
                dw = part->dupliweights.first;
                while (dw) {
                        if (dw->ob == NULL || !BKE_group_object_exists(part->dup_group, dw->ob)) {
-                               GroupObject *go = (GroupObject *)BLI_findlink(&part->dup_group->gobject, dw->index);
+                               go = (GroupObject *)BLI_findlink(&part->dup_group->gobject, dw->index);
                                if (go) {
                                        dw->ob = go->ob;
                                }