diff options
author | Matt Ebb <matt@mke3.net> | 2006-06-19 07:31:30 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2006-06-19 07:31:30 +0400 |
commit | 92522f420214d0db9a4b69833917685e093f4d59 (patch) | |
tree | df271a978f53c85ccc572d7dcec1f98673939353 /source/blender/src/editgroup.c | |
parent | b2dd3db414352ef309bbb4326b1412a69d9c4d0a (diff) |
* Added and tweaked some missing menu items
Diffstat (limited to 'source/blender/src/editgroup.c')
-rw-r--r-- | source/blender/src/editgroup.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/source/blender/src/editgroup.c b/source/blender/src/editgroup.c index 4b699b719ab..f26eaa0f4e3 100644 --- a/source/blender/src/editgroup.c +++ b/source/blender/src/editgroup.c @@ -110,9 +110,21 @@ void group_operation_with_menu(void) break; if(group) - mode= pupmenu("Groups %t|Add to existing Group %x3|Add to New Group %x1|Remove from all Groups %x2"); + mode= pupmenu("Groups %t|Add to Existing Group %x3|Add to New Group %x1|Remove from All Groups %x2"); else - mode= pupmenu("Groups %t|Add to New Group %x1|Remove from all Groups %x2"); + mode= pupmenu("Groups %t|Add to New Group %x1|Remove from All Groups %x2"); + + group_operation(mode); +} + +void group_operation(int mode) +{ + Group *group= NULL; + + /* are there existing groups? */ + for(group= G.main->group.first; group; group= group->id.next) + if(group->id.lib==NULL) + break; if(mode>0) { if(group==NULL || mode==1) group= add_group(); @@ -136,4 +148,3 @@ void group_operation_with_menu(void) else if(mode==2) rem_selected_from_group(); } } - |