diff options
author | Pablo Vazquez <pablo@blender.org> | 2022-09-20 00:51:55 +0300 |
---|---|---|
committer | Pablo Vazquez <pablo@blender.org> | 2022-09-20 00:51:55 +0300 |
commit | d10fd4ee4f1ef6e20cb7c12ee7727d26da677cc2 (patch) | |
tree | 76b65758de57faf34037ca5968f6ca33711157cb /amaranth/node_editor | |
parent | 31656101c5f41b041bf6561d6f733722f49c6524 (diff) |
Amaranth: Remove "Node Shader Extra" feature
This data-block indicator is no longer needed now that the Node Editor
has a context path overlay introduced in Blender 3.0
Diffstat (limited to 'amaranth/node_editor')
-rw-r--r-- | amaranth/node_editor/node_shader_extra.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/amaranth/node_editor/node_shader_extra.py b/amaranth/node_editor/node_shader_extra.py deleted file mode 100644 index 5719112e..00000000 --- a/amaranth/node_editor/node_shader_extra.py +++ /dev/null @@ -1,28 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -import bpy - - -# FEATURE: Shader Nodes Extra Info -def node_shader_extra(self, context): - if context.space_data.tree_type == 'ShaderNodeTree': - ob = context.active_object - snode = context.space_data - layout = self.layout - - if ob and snode.shader_type == 'OBJECT': - if ob.type == 'LAMP': - layout.label(text="%s" % ob.name, - icon="LAMP_%s" % ob.data.type) - else: - layout.label(text="%s" % ob.name, - icon="OUTLINER_DATA_%s" % ob.type) - -# // FEATURE: Shader Nodes Extra Info - - -def register(): - bpy.types.NODE_HT_header.append(node_shader_extra) - - -def unregister(): - bpy.types.NODE_HT_header.remove(node_shader_extra) |