[Bf-blender-cvs] [02bde2c1d5b] master: Cleanup: add using declarations

Jacques Lucke noreply at git.blender.org
Wed Sep 22 19:55:53 CEST 2021


Commit: 02bde2c1d5bbf1ea44209a618eb1947ea1d6cd25
Author: Jacques Lucke
Date:   Wed Sep 22 19:45:47 2021 +0200
Branches: master
https://developer.blender.org/rB02bde2c1d5bbf1ea44209a618eb1947ea1d6cd25

Cleanup: add using declarations

===================================================================

M	source/blender/nodes/NOD_geometry_exec.hh
M	source/blender/nodes/geometry/nodes/node_geo_input_position.cc

===================================================================

diff --git a/source/blender/nodes/NOD_geometry_exec.hh b/source/blender/nodes/NOD_geometry_exec.hh
index dbb5f8b240d..6ce3d0f2ab5 100644
--- a/source/blender/nodes/NOD_geometry_exec.hh
+++ b/source/blender/nodes/NOD_geometry_exec.hh
@@ -33,6 +33,8 @@ struct ModifierData;
 
 namespace blender::nodes {
 
+using bke::AnonymousAttributeFieldInput;
+using bke::AttributeFieldInput;
 using bke::AttributeIDRef;
 using bke::geometry_set_realize_instances;
 using bke::GeometryComponentFieldContext;
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 c6365bf6809..3f3457a3acb 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_position.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_position.cc
@@ -26,7 +26,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<bke::AttributeFieldInput>("position", CPPType::get<float3>())};
+      std::make_shared<AttributeFieldInput>("position", CPPType::get<float3>())};
   params.set_output("Position", std::move(position_field));
 }



More information about the Bf-blender-cvs mailing list