From ba30045219844fdda4123c7047744b8f4e57d2ae Mon Sep 17 00:00:00 2001 From: Jean-Marc Le Roux Date: Sun, 19 Jul 2015 16:33:27 +0200 Subject: [PATCH] Fix segfault in add_uv_map caused by a broken reference to "uv" (see https://developer.blender.org/T45492) --- easy_lightmap.py | 1 + 1 file changed, 1 insertion(+) 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