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

Update addon for Blender 4.0 #182

Open Naxela opened 7 months ago

Naxela commented 7 months ago

Todo: Update addon for Blender 4.0

jywarren commented 1 month ago

I was able to get it working, i think, in 4.1 by changing line 31 of this file:

https://github.com/Naxela/The_Lightmapper/blob/6e9e3a81d6ced3908b209205e1015860fe999d94/addon/utility/gui/Viewport.py#L31

To:

         self.shader = gpu.shader.from_builtin('IMAGE')

Ref: https://projects.blender.org/blender/blender/issues/114359

jywarren commented 1 month ago

I also got an error: AttributeError: 'RenderSettings' object has no attribute 'tile_x'

But i saw this has been fixed on this line already, just not included in the latest packaged .zip yet:

https://github.com/Naxela/The_Lightmapper/blob/6e9e3a81d6ced3908b209205e1015860fe999d94/addon/utility/cycles/prepare.py#L823

jywarren commented 1 month ago

Yep! Very nice, thank u!

image