Browse Source

Revert "Remove user Lamps from autobake lightgroups"

This reverts commit 3f2a3928d1. A more
elegant solution is needed in light of user specified light map light
groups...
pull/6/head
Adam Johnson 10 years ago
parent
commit
7ab11ffa4f
  1. 2
      korman/operators/op_lightmap.py

2
korman/operators/op_lightmap.py

@ -69,8 +69,6 @@ class _LightingOperator:
for material, lg in self._old_lightgroups.items(): for material, lg in self._old_lightgroups.items():
_fake = material.light_group _fake = material.light_group
if _fake is not None: if _fake is not None:
for i in _fake.objects:
_fake.objects.unlink(i)
_fake.user_clear() _fake.user_clear()
bpy.data.groups.remove(_fake) bpy.data.groups.remove(_fake)
material.light_group = lg material.light_group = lg

Loading…
Cancel
Save