bug in copy weight group since 2.44, accessing free'd memory.

This commit is contained in:
Campbell Barton
2009-05-18 14:20:16 +00:00
parent 65bd48c896
commit 9c8f09d2a0

View File

@@ -263,8 +263,10 @@ void duplicate_defgroup ( Object *ob )
dvert = dvert_array+i;
org = get_defweight (dvert, idg);
if (org) {
float weight = org->weight;
/* verify_defweight re-allocs org so need to store the weight first */
cpy = verify_defweight (dvert, icdg);
cpy->weight = org->weight;
cpy->weight = weight;
}
}
}