diff --git a/easy_lightmap.py b/easy_lightmap.py index b0f734d..f83dbdd 100644 --- a/easy_lightmap.py +++ b/easy_lightmap.py @@ -256,6 +256,7 @@ def add_uv_map(name, selected_object): # "PREF_IMG_PX_SIZE": settings.image_w # }) bpy.ops.object.mode_set(mode="OBJECT") + uv = selected_object.data.uv_textures[name] uv.active = True return uv