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