]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/select.cpp
Merge remote branch 'origin/divVerent/zeroradiant-original' into divVerent/zeroradiant
[xonotic/netradiant.git] / radiant / select.cpp
index ec1cf866bae2776c9756fccb2cc95735385cc3df..3364fd3bd32ab573ee442d01cba1042b5f0f704e 100644 (file)
@@ -1372,6 +1372,30 @@ void Select_Inside (void)
        Sys_UpdateWindows (W_ALL);
 }
 
+void Select_SelectGroup(entity_t* group)
+{
+       brush_t*  b;
+       //brush_t*  next;
+
+       Undo_Start ("select func group");
+       Undo_AddBrushList (&selected_brushes);
+       Undo_End();
+
+       Select_Deselect();
+
+       b = &group->brushes;
+
+       do
+       {
+               b = b->onext;
+               Brush_RemoveFromList(b);
+               Brush_AddToList(b, &selected_brushes);
+       } while( b->onext != &group->brushes );
+
+       Sys_UpdateWindows (W_ALL);
+}
+
+
 void Select_Ungroup(void)
 {
        int numselectedgroups;