From 448d855a1e344147f263c72d7cfb4208b6ea6f68 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 2 Oct 2017 20:33:47 -0400 Subject: [PATCH] Fix #62 --- korman/exporter/etlight.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/korman/exporter/etlight.py b/korman/exporter/etlight.py index 730248c..d55a8ae 100644 --- a/korman/exporter/etlight.py +++ b/korman/exporter/etlight.py @@ -233,7 +233,6 @@ class LightBaker: groups = bpy.data.groups for i in groups: if i.name.startswith("_LIGHTMAPGEN_"): - i.user_clear() bpy.data.groups.remove(i) def _prep_for_lightmap(self, bo, toggle): @@ -255,7 +254,6 @@ class LightBaker: im = data_images.new(im_name, width=size, height=size) elif im.size[0] != size: # Force delete and recreate the image because the size is out of date - im.user_clear() data_images.remove(im) im = data_images.new(im_name, width=size, height=size) @@ -364,7 +362,6 @@ def _toss_garbage(scene): """Removes all LIGHTMAPGEN and autocolor garbage before saving""" for i in bpy.data.images: if i.name.endswith("_LIGHTMAPGEN.png"): - i.user_clear() bpy.data.images.remove(i) for i in bpy.data.meshes: for uv_tex in i.uv_textures: