|
|
@ -293,11 +293,11 @@ class MeshConverter: |
|
|
|
return geospans |
|
|
|
return geospans |
|
|
|
|
|
|
|
|
|
|
|
def _export_static_lighting(self, bo): |
|
|
|
def _export_static_lighting(self, bo): |
|
|
|
bpy.context.scene.objects.active = bo |
|
|
|
context = {"active_object": bo, "object": bo} |
|
|
|
if bo.plasma_modifiers.lightmap.enabled: |
|
|
|
if bo.plasma_modifiers.lightmap.enabled: |
|
|
|
print(" Baking lightmap...") |
|
|
|
print(" Baking lightmap...") |
|
|
|
print("====") |
|
|
|
print("====") |
|
|
|
bpy.ops.object.plasma_lightmap_autobake() |
|
|
|
bpy.ops.object.plasma_lightmap_autobake(context) |
|
|
|
print("====") |
|
|
|
print("====") |
|
|
|
else: |
|
|
|
else: |
|
|
|
for vcol_layer in bo.data.vertex_colors: |
|
|
|
for vcol_layer in bo.data.vertex_colors: |
|
|
@ -306,7 +306,7 @@ class MeshConverter: |
|
|
|
break |
|
|
|
break |
|
|
|
else: |
|
|
|
else: |
|
|
|
print(" Baking crappy vertex color lighting...") |
|
|
|
print(" Baking crappy vertex color lighting...") |
|
|
|
bpy.ops.object.plasma_vertexlight_autobake() |
|
|
|
bpy.ops.object.plasma_vertexlight_autobake(context) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _find_create_dspan(self, bo, hsgmat, pass_index): |
|
|
|
def _find_create_dspan(self, bo, hsgmat, pass_index): |
|
|
|