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>2022-05-22 13:01:11 +0300
committerJacques Lucke <jacques@blender.org>2022-05-22 13:01:11 +0300
commitfdb1f704687000b6f0923f3d3ceb3d5ab4b1592d (patch)
tree3408948fd953afd835b398a3c881f7fb4e767e1f /source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc
parent9d9f2f1a0356d2049ea2ce4820c61fdebbdf50ca (diff)
Cleanup: fix wrong type
It's a bit surprising that this compiled. That's probably due to the `GField` constructor, to be investigated!
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc2
1 files changed, 1 insertions, 1 deletions
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()) {