Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-25 12:24:40 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-25 12:24:40 +0300
commit9ad379fe559200e7a17a3c9571ff0785a095dfac (patch)
treef8efac3b76115c93d8a2a7eb950fde0bb56af4ce /intern
parent7ad367d0231dd0d84aeb6d5404b82b29e524dbbf (diff)
Fix T61891: Cycles light use nodes button greyed out.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/addon/operators.py8
1 files changed, 4 insertions, 4 deletions
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'}