Copy name from original modifier rather than generate new unique in copy_object

This commit is contained in:
Sergey Sharybin 2010-06-10 21:23:09 +00:00
parent 0d36ce3252
commit 6aaf55eee5

@ -1280,7 +1280,7 @@ Object *copy_object(Object *ob)
for (md=ob->modifiers.first; md; md=md->next) {
ModifierData *nmd = modifier_new(md->type);
modifier_unique_name(&obn->modifiers, nmd);
BLI_strncpy(nmd->name, md->name, sizeof(nmd->name));
modifier_copyData(md, nmd);
BLI_addtail(&obn->modifiers, nmd);
}