From 9ad379fe559200e7a17a3c9571ff0785a095dfac Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 25 Feb 2019 10:24:40 +0100 Subject: Fix T61891: Cycles light use nodes button greyed out. --- intern/cycles/blender/addon/operators.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'intern') diff --git a/intern/cycles/blender/addon/operators.py b/intern/cycles/blender/addon/operators.py index a099970c58c..28657de24d4 100644 --- a/intern/cycles/blender/addon/operators.py +++ b/intern/cycles/blender/addon/operators.py @@ -22,22 +22,22 @@ from bpy.props import StringProperty class CYCLES_OT_use_shading_nodes(Operator): - """Enable nodes on a material, world or light""" + """Enable nodes on a material, world or lamp""" bl_idname = "cycles.use_shading_nodes" bl_label = "Use Nodes" @classmethod def poll(cls, context): return (getattr(context, "material", False) or getattr(context, "world", False) or - getattr(context, "light", False)) + getattr(context, "lamp", False)) def execute(self, context): if context.material: context.material.use_nodes = True elif context.world: context.world.use_nodes = True - elif context.light: - context.light.use_nodes = True + elif context.lamp: + context.lamp.use_nodes = True return {'FINISHED'} -- cgit v1.2.3