Fix T73768: Node Wrangler Addon's "Connect to Cycles Viewer Node" broken
Caused by rBA8130de948d78. Maniphest Tasks: T73768 Differential Revision: https://developer.blender.org/D6831
This commit is contained in:
parent
8130de948d
commit
9541def220
Notes:
blender-bot
2023-02-14 19:01:09 +01:00
Referenced by issue #73768, Node Wrangler Addon's "Connect to Cycles Viewer Node" broken In EEVEE by rBA8130de948d78
|
@ -1705,6 +1705,8 @@ class NWEmissionViewer(Operator, NWBase):
|
|||
# Set brightness of viewer to compensate for Film and CM exposure
|
||||
if context.scene.render.engine == 'CYCLES' and hasattr(context.scene, 'cycles'):
|
||||
intensity = 1/context.scene.cycles.film_exposure # Film exposure is a multiplier
|
||||
else:
|
||||
intensity = 1
|
||||
|
||||
intensity /= pow(2, (context.scene.view_settings.exposure)) # CM exposure is measured in stops/EVs (2^x)
|
||||
emission.inputs[1].default_value = intensity
|
||||
|
|
Loading…
Reference in New Issue