Fix Use Nodes not working for Cycles lights.

This commit is contained in:
Brecht Van Lommel 2018-07-11 12:13:04 +02:00
parent ff39cbdc86
commit fdc0f4ad90

@ -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: