[Bf-blender-cvs] [fdc0f4ad909] blender2.8: Fix Use Nodes not working for Cycles lights.

Brecht Van Lommel noreply at git.blender.org
Wed Jul 11 12:36:43 CEST 2018


Commit: fdc0f4ad90973d43ccdf4892821dfc82c3ab3329
Author: Brecht Van Lommel
Date:   Wed Jul 11 12:13:04 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBfdc0f4ad90973d43ccdf4892821dfc82c3ab3329

Fix Use Nodes not working for Cycles lights.

===================================================================

M	intern/cycles/blender/addon/ui.py

===================================================================

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:



More information about the Bf-blender-cvs mailing list