Nodes: support searching for warning types directly

This commit is contained in:
Jacques Lucke
2025-05-27 09:01:54 +02:00
parent f9842107aa
commit 4f53677dcd

View File

@@ -548,11 +548,11 @@ class NODE_MT_category_GEO_OUTPUT(Menu):
bl_idname = "NODE_MT_category_GEO_OUTPUT"
bl_label = "Output"
def draw(self, _context):
def draw(self, context):
layout = self.layout
node_add_menu.add_node_type(layout, "NodeGroupOutput")
node_add_menu.add_node_type(layout, "GeometryNodeViewer")
node_add_menu.add_node_type(layout, "GeometryNodeWarning")
node_add_menu.add_node_type_with_searchable_enum(context, layout, "GeometryNodeWarning", "warning_type")
node_add_menu.draw_assets_for_catalog(layout, self.bl_label)