diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-06-06 18:12:49 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-06-06 18:13:02 +0300 |
commit | 3a7af37e280276026e937aa95aefde11290741d2 (patch) | |
tree | ce4843dcc7ace5705146f0e3104deb1517a98947 /doc/python_api/examples/bpy.types.UIList.1.py | |
parent | 3abb1695cfb177c0d8dbff89740ab2ca069c856e (diff) |
Python API Docs: fix some examples
Diffstat (limited to 'doc/python_api/examples/bpy.types.UIList.1.py')
-rw-r--r-- | doc/python_api/examples/bpy.types.UIList.1.py | 12 |
1 files changed, 0 insertions, 12 deletions
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 <none>", 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' |