Browse Source

Remove user Lamps from autobake lightgroups

pull/6/head
Adam Johnson 10 years ago
parent
commit
3f2a3928d1
  1. 2
      korman/operators/op_lightmap.py

2
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

Loading…
Cancel
Save