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:
authorHans Goudey <h.goudey@me.com>2021-09-29 07:19:33 +0300
committerHans Goudey <h.goudey@me.com>2021-09-29 07:19:33 +0300
commiteddc3f5bc8473a4914476dc3ff3ee9091bb42b9a (patch)
tree2482e8619675c667a5dba4d2b6c8d578dd24fc90 /source/blender/modifiers/intern
parent756c22bb411f50e6fcb400fb8dcb3e58968e5f75 (diff)
Cleanup: Add constructor for AttributeFieldInput
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r--source/blender/modifiers/intern/MOD_nodes_evaluator.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes_evaluator.cc b/source/blender/modifiers/intern/MOD_nodes_evaluator.cc
index 592e6180f80..c5213dc304b 100644
--- a/source/blender/modifiers/intern/MOD_nodes_evaluator.cc
+++ b/source/blender/modifiers/intern/MOD_nodes_evaluator.cc
@@ -334,8 +334,7 @@ static void get_socket_value(const SocketRef &socket, void *r_value)
SH_NODE_TEX_NOISE,
GEO_NODE_MESH_TO_POINTS,
GEO_NODE_PROXIMITY)) {
- new (r_value) Field<float3>(
- std::make_shared<bke::AttributeFieldInput>("position", CPPType::get<float3>()));
+ new (r_value) Field<float3>(bke::AttributeFieldInput::Create<float3>("position"));
return;
}
}