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
34 lines
673 B
C++
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
|