Browse Source

Attempt #2 at addressing light group accumulation

pull/6/head
Adam Johnson 9 years ago
parent
commit
df59d613a6
  1. 4
      korman/operators/op_lightmap.py

4
korman/operators/op_lightmap.py

@ -68,7 +68,9 @@ class _LightingOperator:
def _pop_lightgroups(self):
for material, lg in self._old_lightgroups.items():
_fake = material.light_group
if _fake is not None:
if _fake is not None and _fake.name.startswith("_LIGHTMAPGEN"):
for i in _fake.objects:
_fake.objects.unlink(i)
_fake.user_clear()
bpy.data.groups.remove(_fake)
material.light_group = lg

Loading…
Cancel
Save