if (batch != null)
if (batch != null && batch.isEnabled())
    public void draw(Renderer r) {        TriangleBatch batch;        for (int i = 0, cSize = getBatchCount(); i < cSize; i++) {            batch =  getBatch(i);            if (batch != null)                batch.onDraw(r);        }    }