Small feature: add a group -> object name gets derived from group name,
authorTon Roosendaal <ton@blender.org>
Tue, 15 Jan 2008 19:00:09 +0000 (19:00 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 15 Jan 2008 19:00:09 +0000 (19:00 +0000)
source/blender/src/toolbox.c

index f67878a1df2bb7faa90c97c1da4edfe38f866a38..43db71108ec7a4e7f70d58baffad2656a48bbbdd 100644 (file)
@@ -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);