Fix Use Nodes not working for Cycles lights.
This commit is contained in:
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:
|
||||
|
Loading…
Reference in New Issue
Block a user