1
1

Cleanup: fix wrong type

It's a bit surprising that this compiled. That's probably due to the
`GField` constructor, to be investigated!
This commit is contained in:
2022-05-22 12:01:11 +02:00
parent 9d9f2f1a03
commit fdb1f70468

View File

@@ -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()) {