From fdc0f4ad90973d43ccdf4892821dfc82c3ab3329 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 11 Jul 2018 12:13:04 +0200 Subject: Fix Use Nodes not working for Cycles lights. --- intern/cycles/blender/addon/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 6688874de49..03ce3835365 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -1056,7 +1056,7 @@ class CYCLES_OT_use_shading_nodes(Operator): @classmethod def poll(cls, context): return (getattr(context, "material", False) or getattr(context, "world", False) or - getattr(context, "lamp", False)) + getattr(context, "light", False)) def execute(self, context): if context.material: -- cgit v1.2.3