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

"StructRNA of type Image has been removed" when trying to build lightmaps with default settings #113

Open fearguyQ opened 3 years ago

fearguyQ commented 3 years ago

Traceback (most recent call last): File "C:\Users\carso\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\thelightmapper\addon\utility\gui\Viewport.py", line 54, in draw_image_callback bgl.glBindTexture(bgl.GL_TEXTURE_2D, self.image.bindcode) ReferenceError: StructRNA of type Image has been removed Traceback (most recent call last): File "C:\Users\carso\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\thelightmapper\addon\utility\gui\Viewport.py", line 54, in draw_image_callback bgl.glBindTexture(bgl.GL_TEXTURE_2D, self.image.bindcode) ReferenceError: StructRNA of type Image has been removed

Naxela commented 3 years ago

Hi, I'm currently looking itno fixing this, but usually it can be solved by finding the image called TLM_Overlay.png and shift-clicking on the delete image button:

image

fazckl commented 3 years ago

Hi, I'm having a similar problem. When I open up a new project and only add a plane beneath the cube, enable Lightmapper and build Lightmaps, I get the "Building Lightmaps..." icon in the lower left but nothing happens after that and the console output shows what fearguyQ got. I tried deleting the image the way you mentioned but that doesn't seem to solve anything.

Earlier I got another error telling me that TLM_Overlay.png could not be found. That disappeared without me knowing what changed. Maybe this is relevant.