There are very rare use-cases for having multiple Group Output nodes. However, it's something that's been supported for a long time and removing it may be a regression for some. In practice, it's usually a mistake when someone has multiple Group Output nodes. This patch adds a simple warning on inactive Group Output nodes to help the user notice this case. Pull Request: https://projects.blender.org/blender/blender/pulls/138743
31 lines
575 B
C++
31 lines
575 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;
|
|
};
|
|
|
|
struct NodeExtraInfoParams {
|
|
Vector<NodeExtraInfoRow> &rows;
|
|
const bNodeTree &tree;
|
|
const bNode &node;
|
|
const bContext &C;
|
|
};
|
|
|
|
} // namespace blender::nodes
|