Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build lightmaps (Blender 3.5) #172

Open
prerakpatel opened this issue May 12, 2023 · 1 comment
Open

Cannot build lightmaps (Blender 3.5) #172

prerakpatel opened this issue May 12, 2023 · 1 comment

Comments

@prerakpatel
Copy link

Hi,

I am not much of a coder but for some reason, I keep seeing this error when I click "Build Lightmaps". I have enabled lightmapper for all the visible objects in the scene. I have one plane that I am using with an emissive material as a light source for the scene. The error I keep seeing is below. I want to create this scene with a 'high' or 'production' quality with 1/1 resolution. What am I doing wrong? Can you please help?

Error: Python: Traceback (most recent call last):
File "C:\Users\Pushkar\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\thelightmapper\addon\operators\tlm.py", line 52, in invoke
build.prepare_build(self, False)
File "C:\Users\Pushkar\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\thelightmapper\addon\utility\build.py", line 84, in prepare_build
if check_materials():
File "C:\Users\Pushkar\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\thelightmapper\addon\utility\build.py", line 1272, in check_materials
nodes = mat.node_tree.nodes
AttributeError: 'NoneType' object has no attribute 'nodes'

Screenshot 2023-05-12 131556
@Naxela
Copy link
Owner

Naxela commented May 13, 2023

Hi, thank you for reporting this issue. I'm not entirely sure what the cause is,- but if could you share the scene then I can take a look. Most likely it seems like there might be a material that doesn't have nodes toggled on, but it could also be a new issue caused by Blender 3.5 (I haven't checked the new version too thoroughly yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants