From 3f2a3928d10de936f07de02022a30d1126361125 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 13 Jun 2015 22:07:26 -0400 Subject: [PATCH] Remove user Lamps from autobake lightgroups --- korman/operators/op_lightmap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/korman/operators/op_lightmap.py b/korman/operators/op_lightmap.py index aaaed46..dcb704b 100644 --- a/korman/operators/op_lightmap.py +++ b/korman/operators/op_lightmap.py @@ -64,6 +64,8 @@ class _LightingOperator: for material, lg in self._old_lightgroups.items(): _fake = material.light_group if _fake is not None: + for i in _fake.objects: + _fake.objects.unlink(i) _fake.user_clear() bpy.data.groups.remove(_fake) material.light_group = lg