From 3a7af37e280276026e937aa95aefde11290741d2 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 6 Jun 2019 17:12:49 +0200 Subject: Python API Docs: fix some examples --- doc/python_api/examples/bpy.types.UIList.1.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'doc/python_api/examples/bpy.types.UIList.1.py') diff --git a/doc/python_api/examples/bpy.types.UIList.1.py b/doc/python_api/examples/bpy.types.UIList.1.py index 92b115b2af4..6fbb8890fc7 100644 --- a/doc/python_api/examples/bpy.types.UIList.1.py +++ b/doc/python_api/examples/bpy.types.UIList.1.py @@ -40,18 +40,6 @@ class MATERIAL_UL_matslots_example(bpy.types.UIList): layout.prop(ma, "name", text="", emboss=False, icon_value=icon) else: layout.label(text="", translate=False, icon_value=icon) - # And now we can add other UI stuff... - # Here, we add nodes info if this material uses (old!) shading nodes. - if ma and not context.scene.render.use_shading_nodes: - manode = ma.active_node_material - if manode: - # The static method UILayout.icon returns the integer value of the icon ID "computed" for the given - # RNA object. - layout.label(text="Node %s" % manode.name, translate=False, icon_value=layout.icon(manode)) - elif ma.use_nodes: - layout.label(text="Node ", translate=False) - else: - layout.label(text="") # 'GRID' layout type should be as compact as possible (typically a single icon!). elif self.layout_type in {'GRID'}: layout.alignment = 'CENTER' -- cgit v1.2.3