From 9517c067416280a5e6161255d02219aac0bbd75e Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 29 Jul 2021 21:07:18 -0400 Subject: [PATCH] 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. --- korman/exporter/etlight.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/korman/exporter/etlight.py b/korman/exporter/etlight.py index 705f7b2..fc62bd1 100644 --- a/korman/exporter/etlight.py +++ b/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():