def gather_items(context): fx = [] idx = 0 for _, node_list in node_cats.items(): for item in node_list: if item[0] in {'separator', 'NodeReroute'}: continue nodetype = get_node_class_reference(item[0]) if not nodetype: continue docstring = ensure_valid_show_string(nodetype) if not docstring: continue fx.append((str(idx), docstring, '', idx)) idx += 1 for k, v in macros.items(): fx.append((k, format_item(k, v), '', idx)) idx += 1 gather_extra_nodes(idx, fx, context) fx_extend(idx, fx) return fx
def gather_items(): fx = [] idx = 0 for _, node_list in node_cats.items(): for item in node_list: if item[0] in {'separator', 'NodeReroute'}: continue fx.append((str(idx), ensure_valid_show_string(item), '', idx)) idx += 1 for k, v in macros.items(): fx.append((k, format_item(k, v), '', idx)) idx += 1 fx_extend(idx, fx) return fx
def gather_items(): fx = [] idx = 0 for _, node_list in node_cats.items(): for item in node_list: if item[0] in {'separator', 'NodeReroute'}: continue fx.append((str(idx), ensure_valid_show_string(item), '', idx)) idx += 1 for k, v in macros.items(): fx.append((k, format_item(k, v), '', idx)) idx += 1 fx_extend(idx, fx) return fx