Fix for bug #7851: crash with LSCM unwrap, due to opennl refactor.
[blender.git] / source / blender / src / buttons_object.c
index 45f1cbe3e9f1223356e907e915cb73fd1fa5865f..0f0845cecd1b6a419181525c3f7628e999d18c3b 100644 (file)
@@ -3772,7 +3772,7 @@ static void object_panel_particle_extra(Object *ob)
                
                uiDefButS(block, MENU, B_PART_REDRAW, "Attribute%t|TanRot%x10|TanVel%x9|Size%x8|RoughE%x7|Rough2%x6|Rough1%x5|Kink%x4|Clump%x3|Length%x2|Velocity%x1|Density%x0", butx,(buty-=buth),butw-40,buth, &vgnum, 14.0, 0.0, 0, 0, "Attribute effected by vertex group");
                but=uiDefButBitS(block, TOG, (1<<vgnum), B_PART_REDRAW, "Neg",  butx+butw-40,buty,40,buth, &psys->vg_neg, 0, 0, 0, 0, "Negate the effect of the vertex group");
-               uiButSetFunc(but, particle_set_vg, (void *)psys, (void *)(&vgnum));
+               uiButSetFunc(but, particle_set_vg, (void *)ob, (void *)(&vgnum));
                
                butx+=butw;