Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-01-15 22:00:09 +0300
committerTon Roosendaal <ton@blender.org>2008-01-15 22:00:09 +0300
commit2bf712f6b558ac37d3f45a8b456dda6c6c1e6b55 (patch)
tree2832bee2a79821131ed15637aa28c0765c89b949 /source
parenta32ddc1b85e2df0c26986b94a5efdcf6f65e5a2e (diff)
Small feature: add a group -> object name gets derived from group name,
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/toolbox.c2
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);