forked from bartvdbraak/blender
Copy name from original modifier rather than generate new unique in copy_object
This commit is contained in:
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user