--- libgender/entity.h 2004/10/04 02:06:57 1.13 +++ libgender/entity.h 2004/10/04 07:04:58 1.15 @@ -28,7 +28,13 @@ }; struct entity_container : entity_base, protected vector { - void add (entity_base *e) { push_back (e); e->parent = this; } + void add (entity_base *e) + { + push_back (e); + e->parent = this; + update_bbox (); + } + void update_bbox (); void show (); void draw (draw_context &ctx); @@ -44,6 +50,7 @@ { this->e = e; e->parent = this; + update_bbox (); } void remove () @@ -96,7 +103,6 @@ void set (const vector &v); void draw (draw_context &ctx); - }; typedef entity_opengl1d entity_points;