Cleanup: fix debug lazy function name for Switch node

Pull Request: https://projects.blender.org/blender/blender/pulls/109437
This commit is contained in:
Iliya Katueshenock
2023-06-28 17:26:31 +02:00
committed by Jacques Lucke
parent a1cc621e1e
commit ffb0517e6e

View File

@@ -172,6 +172,7 @@ class LazyFunctionForSwitchNode : public LazyFunction {
BLI_assert(socket_type != nullptr);
const CPPType &cpp_type = *socket_type->geometry_nodes_cpp_type;
debug_name_ = node.name;
inputs_.append_as("Condition", CPPType::get<ValueOrField<bool>>());
inputs_.append_as("False", cpp_type, lf::ValueUsage::Maybe);
inputs_.append_as("True", cpp_type, lf::ValueUsage::Maybe);