[Bf-extensions-cvs] [d10fd4ee] master: Amaranth: Remove "Node Shader Extra" feature

Pablo Vazquez noreply at git.blender.org
Mon Sep 19 23:52:02 CEST 2022


Commit: d10fd4ee4f1ef6e20cb7c12ee7727d26da677cc2
Author: Pablo Vazquez
Date:   Mon Sep 19 23:51:55 2022 +0200
Branches: master
https://developer.blender.org/rBAd10fd4ee4f1ef6e20cb7c12ee7727d26da677cc2

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

===================================================================

M	amaranth/__init__.py
D	amaranth/node_editor/node_shader_extra.py

===================================================================

diff --git a/amaranth/__init__.py b/amaranth/__init__.py
index 0bdbdb8c..4442e344 100644
--- a/amaranth/__init__.py
+++ b/amaranth/__init__.py
@@ -41,7 +41,6 @@ from amaranth.node_editor import (
     simplify_nodes,
     node_stats,
     normal_node,
-    node_shader_extra,
     )
 
 from amaranth.render import (
@@ -73,7 +72,7 @@ from amaranth.misc import (
 bl_info = {
     "name": "Amaranth Toolset",
     "author": "Pablo Vazquez, Bassam Kurdali, Sergey Sharybin, Lukas Tönne, Cesar Saez, CansecoGPC",
-    "version": (1, 0, 15),
+    "version": (1, 0, 16),
     "blender": (3, 2, 0),
     "location": "Everywhere!",
     "description": "A collection of tools and settings to improve productivity",
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)



More information about the Bf-extensions-cvs mailing list