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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/src/editgroup.c')
-rw-r--r--source/blender/src/editgroup.c17
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();
}
}
-