Fix: Compositor: Set String Case node missing in Add/Swap menu

This patch adds `Set String Case` to the Compositor Add/Swap menus.
When it was made, compositor functionality was already supported, but it
wasn't exposed in the menus.

No changes to the node's functionality have been made.

Pull Request: https://projects.blender.org/blender/blender/pulls/160940
This commit is contained in:
quackarooni 2026-07-02 12:30:42 +02:00 • committed by Habib Gahbiche
parent 6d02d4d9de
commit a480c0a26f

View file

@ -367,12 +367,15 @@ class NODE_MT_compositor_node_text_base(node_add_menu.NodeMenu):
bl_label = "Text"
menu_path = "Utilities/Text"
def draw(self, _context):
def draw(self, context):
layout = self.layout
self.node_operator(layout, "FunctionNodeFormatString")
self.node_operator(layout, "FunctionNodeMatchString")
self.node_operator(layout, "FunctionNodeReplaceString")
self.node_operator(layout, "FunctionNodeReverseString")
self.node_operator_with_searchable_enum_socket(
context, layout, "FunctionNodeSetStringCase", "Case", ["Uppercase", "Lowercase"],
)
self.node_operator(layout, "FunctionNodeSliceString")
self.node_operator(layout, "FunctionNodeTrimString")
layout.separator()