Files
test/source/blender/nodes/NOD_node_extra_info.hh
Jacques Lucke 21ca4584b6 Geometry Nodes: show sync button on bundle and closure nodes if syncing is possible
This shows a sync button when Geometry Nodes has detected that
syncing is possible and might be necessary.

Pull Request: https://projects.blender.org/blender/blender/pulls/140967
2025-07-30 18:51:14 +02:00

34 lines
673 B
C++

/* SPDX-FileCopyrightText: 2005 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#include "BLI_vector.hh"
#include "UI_interface_c.hh"
namespace blender::nodes {
struct NodeExtraInfoRow {
std::string text;
int icon = 0;
StringRef tooltip;
uiButToolTipFunc tooltip_fn = nullptr;
void *tooltip_fn_arg = nullptr;
void (*tooltip_fn_free_arg)(void *) = nullptr;
void *(*tooltip_fn_copy_arg)(void *) = nullptr;
std::function<void(uiBut &)> set_execute_fn;
};
struct NodeExtraInfoParams {
Vector<NodeExtraInfoRow> &rows;
const bNodeTree &tree;
const bNode &node;
const bContext &C;
};
} // namespace blender::nodes