From 8130de948d78704db21b0b1e1e3aaadcd12a0c3f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel <brechtvanlommel@gmail.com> Date: Wed, 12 Feb 2020 11:31:30 +0100 Subject: [PATCH] Fix T64584: error in node wrangler with cycles add-on disabled --- node_wrangler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node_wrangler.py b/node_wrangler.py index f1aa1e0c0..a9ac84770 100644 --- a/node_wrangler.py +++ b/node_wrangler.py @@ -1703,7 +1703,9 @@ class NWEmissionViewer(Operator, NWBase): make_links.append((emission.outputs[0], materialout.inputs[0])) # Set brightness of viewer to compensate for Film and CM exposure - intensity = 1/context.scene.cycles.film_exposure # Film exposure is a multiplier + if context.scene.render.engine == 'CYCLES' and hasattr(context.scene, 'cycles'): + intensity = 1/context.scene.cycles.film_exposure # Film exposure is a multiplier + intensity /= pow(2, (context.scene.view_settings.exposure)) # CM exposure is measured in stops/EVs (2^x) emission.inputs[1].default_value = intensity -- GitLab