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
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/blender/addon/ui.py')
-rw-r--r--intern/cycles/blender/addon/ui.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 2f1adfe4178..e372843d763 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -22,7 +22,6 @@ import _cycles
from bpy.types import (
Panel,
Menu,
- Operator,
)
@@ -912,27 +911,6 @@ class CYCLES_OBJECT_PT_cycles_settings(CyclesButtonsPanel, Panel):
sub.prop(cob, "use_distance_cull")
-class CYCLES_OT_use_shading_nodes(Operator):
- """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, "lamp", False))
-
- def execute(self, context):
- if context.material:
- context.material.use_nodes = True
- elif context.world:
- context.world.use_nodes = True
- elif context.lamp:
- context.lamp.use_nodes = True
-
- return {'FINISHED'}
-
-
def find_node(material, nodetype):
if material and material.node_tree:
ntree = material.node_tree
@@ -1870,7 +1848,6 @@ classes = (
CYCLES_PT_context_material,
CYCLES_OBJECT_PT_motion_blur,
CYCLES_OBJECT_PT_cycles_settings,
- CYCLES_OT_use_shading_nodes,
CYCLES_LAMP_PT_preview,
CYCLES_LAMP_PT_lamp,
CYCLES_LAMP_PT_nodes,