Nodes: Enable panel toggles in the Compositor

This patch enables panel toggles in the compositor since it now supports
boolean sockets. This essentially reverts c3957f432a.
This commit is contained in:
Omar Emara
2025-03-24 10:20:39 +02:00
parent 55e09a6cbf
commit 7c0c31efb0
2 changed files with 6 additions and 7 deletions

View File

@@ -314,7 +314,7 @@ class NODE_OT_interface_item_new(NodeInterfaceOperator, Operator):
active_item = interface.active
# Panels have the extra option to add a toggle.
if active_item and active_item.item_type == 'PANEL' and tree.type in {'GEOMETRY', 'SHADER'}:
if active_item and active_item.item_type == 'PANEL':
items.append(('PANEL_TOGGLE', "Panel Toggle", ""))
return items