public void Visit(MapObjectGroup mapObjectGroup) { foreach (MapObject brush in mapObjectGroup.MapObjectList) { brush.PerformOperation(this); } mapObjectGroup.RegenerateBounds(); }
public void Visit(MapObjectGroup mapObjectGroup) { // we only set the bounds for the top groupbrush // this way a child groupbrush wont change the rootBounds again if (rootBounds == null) { rootBounds = mapObjectGroup.Bounds; } foreach (MapObject brush in mapObjectGroup.MapObjectList) { brush.PerformOperation(this); } mapObjectGroup.RegenerateBounds(); }