diff options
author | Hans Goudey <h.goudey@me.com> | 2022-05-05 13:41:36 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-05-05 13:41:48 +0300 |
commit | be0417d690183726b0364088cc261578ad813637 (patch) | |
tree | 332b07ede9eb1f6a745fdf8eacb790dd0fc0de57 /source/blender/blenkernel/BKE_geometry_fields.hh | |
parent | 18bcd8321a68832d01a0fedeed38b80767f70a64 (diff) |
Cleanup: Move curve length field input to blenkernel
To use in the geometry module when the resample curves code
is moved there (T97448).
Diffstat (limited to 'source/blender/blenkernel/BKE_geometry_fields.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_geometry_fields.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_geometry_fields.hh b/source/blender/blenkernel/BKE_geometry_fields.hh index 36b382feb5f..9c86ab262ef 100644 --- a/source/blender/blenkernel/BKE_geometry_fields.hh +++ b/source/blender/blenkernel/BKE_geometry_fields.hh @@ -162,4 +162,14 @@ class AnonymousAttributeFieldInput : public GeometryFieldInput { bool is_equal_to(const fn::FieldNode &other) const override; }; +class CurveLengthFieldInput final : public GeometryFieldInput { + public: + CurveLengthFieldInput(); + GVArray get_varray_for_context(const GeometryComponent &component, + AttributeDomain domain, + IndexMask mask) const final; + uint64_t hash() const override; + bool is_equal_to(const fn::FieldNode &other) const override; +}; + } // namespace blender::bke |