[Bf-blender-cvs] [fdb1f704687] master: Cleanup: fix wrong type

Jacques Lucke noreply at git.blender.org
Sun May 22 12:01:26 CEST 2022


Commit: fdb1f704687000b6f0923f3d3ceb3d5ab4b1592d
Author: Jacques Lucke
Date:   Sun May 22 12:01:11 2022 +0200
Branches: master
https://developer.blender.org/rBfdb1f704687000b6f0923f3d3ceb3d5ab4b1592d

Cleanup: fix wrong type

It's a bit surprising that this compiled. That's probably due to the
`GField` constructor, to be investigated!

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

M	source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc
index d9cc8bcf023..78a132064ed 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc
@@ -73,7 +73,7 @@ static void node_geo_exec(GeoNodeExecParams params)
       break;
     }
     case GEO_NODE_CURVE_RESAMPLE_LENGTH: {
-      Field<int> length = params.extract_input<Field<float>>("Length");
+      Field<float> length = params.extract_input<Field<float>>("Length");
       geometry_set.modify_geometry_sets([&](GeometrySet &geometry) {
         if (const CurveComponent *component = geometry.get_component_for_read<CurveComponent>()) {
           if (!component->is_empty()) {



More information about the Bf-blender-cvs mailing list