Browse Source

Fix "no valid lights" in lightmap preview op.

pull/269/head
Adam Johnson 3 years ago
parent
commit
b18ce1c5c0
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/operators/op_lightmap.py

2
korman/operators/op_lightmap.py

@ -59,7 +59,7 @@ class LightmapAutobakePreviewOperator(_LightingOperator, bpy.types.Operator):
if not self.final:
bake.lightmap_name = "{}_LIGHTMAPGEN_PREVIEW.png"
bake.lightmap_uvtex_name = "LIGHTMAPGEN_PREVIEW"
bake.force = self.final
bake.force = True
bake.retain_lightmap_uvtex = self.final
if not bake.bake_static_lighting([context.object,]):
self.report({"WARNING"}, "No valid lights found to bake.")

Loading…
Cancel
Save