Browse Source

Remove incorrect crash hack.

This didn't seem to fix the problem in previous testing; however, it
seems to have been fixed in force push change.
pull/261/head
Adam Johnson 3 years ago
parent
commit
9517c06741
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 7
      korman/exporter/etlight.py

7
korman/exporter/etlight.py

@ -288,13 +288,6 @@ class LightBaker(_MeshManager):
if im is not None and im.is_dirty:
im.pack(as_png=True)
# Blender bug? If there is no vertex color layer, some textured rendered objects
# seem to go KABLOOEY! So, make sure there is at least one dummy vcol layer.
vcols = bo.data.vertex_colors
if not bool(vcols):
# So the user knows what's happening
vcols.new("LIGHTMAPGEN_defeatcrash")
def _pop_lightgroups(self):
materials = bpy.data.materials
for mat_name, lg in self._lightgroups.items():

Loading…
Cancel
Save