From 7ab11ffa4f24af2e57ca890d5f8df78b27e43653 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 13 Jun 2015 22:39:27 -0400 Subject: [PATCH] Revert "Remove user Lamps from autobake lightgroups" This reverts commit 3f2a3928d10de936f07de02022a30d1126361125. A more elegant solution is needed in light of user specified light map light groups... --- korman/operators/op_lightmap.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/korman/operators/op_lightmap.py b/korman/operators/op_lightmap.py index 7f6b09f..1354114 100644 --- a/korman/operators/op_lightmap.py +++ b/korman/operators/op_lightmap.py @@ -69,8 +69,6 @@ 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