diff options
author | Hans Goudey <h.goudey@me.com> | 2021-09-29 07:19:33 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-29 07:19:33 +0300 |
commit | eddc3f5bc8473a4914476dc3ff3ee9091bb42b9a (patch) | |
tree | 2482e8619675c667a5dba4d2b6c8d578dd24fc90 /source/blender/nodes | |
parent | 756c22bb411f50e6fcb400fb8dcb3e58968e5f75 (diff) |
Cleanup: Add constructor for AttributeFieldInput
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_input_position.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_position.cc b/source/blender/nodes/geometry/nodes/node_geo_input_position.cc index f439fb32d31..44874259e20 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_input_position.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_input_position.cc @@ -25,8 +25,7 @@ static void geo_node_input_position_declare(NodeDeclarationBuilder &b) static void geo_node_input_position_exec(GeoNodeExecParams params) { - Field<float3> position_field{ - std::make_shared<AttributeFieldInput>("position", CPPType::get<float3>())}; + Field<float3> position_field{AttributeFieldInput::Create<float3>("position")}; params.set_output("Position", std::move(position_field)); } |