From 6180ec82b35e7f2357dda078bb2d4c9d2fd82d31 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 6 Mar 2018 17:25:20 -1000 Subject: [PATCH] Fix lightmap script --- hecl/blender/hecl/srea/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hecl/blender/hecl/srea/__init__.py b/hecl/blender/hecl/srea/__init__.py index b61542863..4b2e43396 100644 --- a/hecl/blender/hecl/srea/__init__.py +++ b/hecl/blender/hecl/srea/__init__.py @@ -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'}