Page MenuHome

Node Wrangler emission viewer broken with cycles disabled
Open, Confirmed, MediumPublic

Description

Operating system: Windows 10
Graphics card: NVIDIA GeForce GTX 980M

Broken: (2.80, a5b5bd2c24e0, master, 2019-05-13)

When the cycles addon is disabled, the 'Emission Viewer' feature of node wrangler fails

Steps to reproduce:

  1. Disable the cycles addon
  2. Switch to shading view, create a new material
  3. Add in any node other than a shader (since shader outputs are handled differently)
  4. Hover your mouse over the node and trigger the emission viewer (default shortcut is ctrl + shift + left mouse)

you should get an error like this:

Traceback (most recent call last):
  File "...scripts/addons/node_wrangler.py", line 1704, in invoke
    intensity = 1/context.scene.cycles.film_exposure  # Film exposure is a multiplier
AttributeError: 'Scene' object has no attribute 'cycles'

Details

Type
Bug

Event Timeline

Philipp Oeser (lichtwerk) claimed this task.
Philipp Oeser (lichtwerk) triaged this task as Confirmed, Medium priority.

Confirmed, will have a look...

line 547 is the issue

def is_cycles_or_eevee(context):
    return context.scene.render.engine in {'CYCLES', 'BLENDER_EEVEE'}

Possibly this could be better written to handle this.