Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-09-24 17:42:07 +0300
committerJacques Lucke <jacques@blender.org>2021-09-24 17:42:20 +0300
commit4a2c63f4bd7e3cbb8cd80655270f3184d660e51d (patch)
tree731a17558099cd7d38c0f426a0628566d7a1291c /source/blender/nodes/NOD_node_declaration.hh
parent90b410fe74b8710eaaa0372cb4f2d7da60f002a7 (diff)
Nodes: hide socket value when input is a field implicitly
Diffstat (limited to 'source/blender/nodes/NOD_node_declaration.hh')
-rw-r--r--source/blender/nodes/NOD_node_declaration.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_node_declaration.hh b/source/blender/nodes/NOD_node_declaration.hh
index 32e63ffb2df..6780dfcad59 100644
--- a/source/blender/nodes/NOD_node_declaration.hh
+++ b/source/blender/nodes/NOD_node_declaration.hh
@@ -202,6 +202,7 @@ class SocketDeclarationBuilder : public BaseSocketDeclarationBuilder {
/** The input supports a field and is a field by default when nothing is connected. */
Self &implicit_field()
{
+ this->hide_value();
decl_->input_field_type_ = InputSocketFieldType::Implicit;
return *(Self *)this;
}