Minor optimization to lightmap generation