diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/functions/tests/FN_field_test.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/functions/tests/FN_field_test.cc b/source/blender/functions/tests/FN_field_test.cc index d904f39d0d7..e3525f0be19 100644 --- a/source/blender/functions/tests/FN_field_test.cc +++ b/source/blender/functions/tests/FN_field_test.cc @@ -27,8 +27,11 @@ TEST(field, ConstantFunction) } class IndexFieldInput final : public FieldInput { - /* TODO: I don't think this is a valid way to override the name, but I wish it was. */ - StringRef name_ = "Index"; + public: + IndexFieldInput() : FieldInput("Index") + { + } + GVArrayPtr get_varray_generic_context(IndexMask mask) const final { auto index_func = [](int i) { return i; }; |