diff options
Diffstat (limited to 'source/blender/functions/intern/field.cc')
-rw-r--r-- | source/blender/functions/intern/field.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/functions/intern/field.cc b/source/blender/functions/intern/field.cc index 03af3f53065..1f7bad134a8 100644 --- a/source/blender/functions/intern/field.cc +++ b/source/blender/functions/intern/field.cc @@ -530,6 +530,17 @@ const GVArray *IndexFieldInput::get_varray_for_context(const fn::FieldContext &U mask.min_array_size(), mask.min_array_size(), index_func); } +uint64_t IndexFieldInput::hash() const +{ + /* Some random constant hash. */ + return 128736487678; +} + +bool IndexFieldInput::is_equal_to(const fn::FieldNode &other) const +{ + return dynamic_cast<const IndexFieldInput *>(&other) != nullptr; +} + /* -------------------------------------------------------------------- * FieldOperation. */ |