jlampel / extra_lights

Adds physically based lights to Blender's Add menu
Other
249 stars 27 forks source link

light_classes.py:450 AttributeError: 'NoneType' object has no attribute 'nodes' #19

Closed walles closed 3 years ago

walles commented 4 years ago

With Blender 2.82a and Extra Lights 1.0 (according to the Add-ons preferences panel in Blender), if I do...

... then I get:

Traceback (most recent call last):
  File "/Users/johan/Library/Application Support/Blender/2.82/scripts/addons/extra_lights-master/light_classes.py", line 450, in execute
    nodes = world.node_tree.nodes
AttributeError: 'NoneType' object has no attribute 'nodes'

location: <unknown location>:-1

location: <unknown location>:-1
Error: Traceback (most recent call last):
  File "/Users/johan/Library/Application Support/Blender/2.82/scripts/addons/extra_lights-master/light_classes.py", line 450, in execute
    nodes = world.node_tree.nodes
AttributeError: 'NoneType' object has no attribute 'nodes'

location: <unknown location>:-1
jlampel commented 4 years ago

Hi, sorry I missed this! Thank you for letting me know. It looks like this happens only when no world is active: image

This will be fixed in the next update, since I'll be appending the world rather than creating it from scratch.

jlampel commented 3 years ago

Fixed in version 1.1