]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/select.cpp
ABToSVK commit
[xonotic/netradiant.git] / radiant / select.cpp
index f563d2de7dafa8f80d9d712e424b8d68825c5fa2..470cb77de806e78b930db8bb53e3da688e406346 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;