Files
test/source/blender/nodes/NOD_socket_usage_inference_fwd.hh
Omar Emara 3aa674966f Nodes: Support disabling outputs in built-in nodes
This patch adds support for disabling outputs in built-in nodes based on
menu inputs using a custom usage_inference callback. This just
essentially calls usage_inference_fn for outputs as well, while it was
only being called for inputs. Additionally, the usage_by_menu methods
were adjusted to only consider outputs if it is being called on inputs.

Some types were renamed to be more general, and not just for inputs.

Pull Request: https://projects.blender.org/blender/blender/pulls/148132
2025-10-15 15:57:56 +02:00

17 lines
321 B
C++

/* SPDX-FileCopyrightText: 2025 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
namespace blender::nodes::socket_usage_inference {
class SocketUsageParams;
struct SocketUsage {
bool is_used = true;
bool is_visible = true;
};
} // namespace blender::nodes::socket_usage_inference