Page MenuHome

Node Wrangler Addon's "Connect to Cycles Viewer Node" broken In EEVEE by rBA8130de948d78
Closed, ResolvedPublicBUG


System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13

Blender Version
Broken: version: 2.83 (sub 2), branch: master, commit date: 2020-02-12 19:49, hash: rB9fe469c11094
Worked: before rBA8130de948d78

Short description of error
When using EEVEE and the Node Wrangler Addon, Ctrl Shift LMB to connect nodes to the Viewer Node only work on Shader Nodes. All other node types return this error instead:

Traceback (most recent call last):
  File "C:\blender-git\build_windows_x64_vc16_Release\bin\Release\2.83\scripts\addons\", line 1709, in invoke
    intensity /= pow(2, (context.scene.view_settings.exposure))  # CM exposure is measured in stops/EVs (2^x)
UnboundLocalError: local variable 'intensity' referenced before assignment

location: <unknown location>:-1

Relevant code, lines 1706 and 1708 are new as of rBA8130de948d78

1706                       if context.scene.render.engine == 'CYCLES' and hasattr(context.scene, 'cycles'):
1707                           intensity = 1/context.scene.cycles.film_exposure  # Film exposure is a multiplier
1709                       intensity /= pow(2, (context.scene.view_settings.exposure))  # CM exposure is measured in stops/EVs (2^x)

Exact steps for others to reproduce the error
Start Blender.
Make sure Node Wrangler is enabled.
Add a material to an object in the shader editor.
Add any node type except shader.
Ctrl Shift LMB on the node.