diff options
author | Ton Roosendaal <ton@blender.org> | 2008-01-15 22:00:09 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-01-15 22:00:09 +0300 |
commit | 2bf712f6b558ac37d3f45a8b456dda6c6c1e6b55 (patch) | |
tree | 2832bee2a79821131ed15637aa28c0765c89b949 /source/blender/src/toolbox.c | |
parent | a32ddc1b85e2df0c26986b94a5efdcf6f65e5a2e (diff) |
Small feature: add a group -> object name gets derived from group name,
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r-- | source/blender/src/toolbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index f67878a1df2..43db71108ec 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -1755,6 +1755,8 @@ static void do_group_addmenu(void *arg, int event) ob->dup_group= BLI_findlink(&G.main->group, event); if(ob->dup_group) { + rename_id(&ob->id, ob->dup_group->id.name+2); + id_us_plus((ID *)ob->dup_group); ob->transflag |= OB_DUPLIGROUP; DAG_scene_sort(G.scene); |