Naxela / The_Lightmapper

Fast and easy baked GI Lightmaps for Blender and Cycles
GNU General Public License v3.0
690 stars 52 forks source link

keyError bpy_prop_collection #142

Open torchesburn opened 2 years ago

torchesburn commented 2 years ago

I dont get why some meshes give this error

line 843, in manage_build

Lightmapimage - bpy.data.images[img_name]

bpy_prop_collection[key]: key "mesh.name.here" not found

mesh.name.here being the mesh name

and the bake fails completely

Naxela commented 2 years ago

Hi, and thanks for submitting this bug!

I can't seem to find anything specific on that line in the manage_build section - Would it be possible to get a screenshot of the blender console with this error?:

image

Thanks again

torchesburn commented 2 years ago

So what i wrote was almost exact

window console also shows this stacktrace: lightmapper\addon\operators\tlm.py line 52 in invoke lightmapper\addon\utility\build.py line 101 in prepare_build lightmapper\addon\utility\build.py line 678 in begin_build lightmapper\addon\utility\build.py line 843 in manage_build Lightmapimage - bpy.data.images[img_name]

bpy_prop_collection[key]: key "mesh.name.here" not found