From e2de34263a02b1500677f68124796e2bdcdb7d34 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 5 Jun 2024 11:00:22 +0200 Subject: [PATCH] Nodes: don't show custom color panel for reroute nodes This color is not used anywhere. --- scripts/startup/bl_ui/space_node.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/startup/bl_ui/space_node.py b/scripts/startup/bl_ui/space_node.py index bafc3ac565e..fd6a517881b 100644 --- a/scripts/startup/bl_ui/space_node.py +++ b/scripts/startup/bl_ui/space_node.py @@ -705,7 +705,12 @@ class NODE_PT_active_node_color(Panel): @classmethod def poll(cls, context): - return context.active_node is not None + node = context.active_node + if node is None: + return False + if node.bl_idname == "NodeReroute": + return False + return True def draw_header(self, context): node = context.active_node