Fix lightmap script

This commit is contained in:
Jack Andersen 2018-03-06 17:25:20 -10:00
parent 905386d5e2
commit 6180ec82b3
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ class SREARenderLightmaps(bpy.types.Operator):
obj.data.uv_textures.active_index = 0
# Make lightmaps
bpy.ops.object.bake('INVOKE_DEFAULT', type='DIFFUSE_DIRECT')
bpy.ops.object.bake('INVOKE_DEFAULT', type='DIFFUSE', pass_filter={'DIRECT'})
return {'FINISHED'}