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:
authorHans Goudey <h.goudey@me.com>2021-08-31 01:57:01 +0300
committerHans Goudey <h.goudey@me.com>2021-08-31 01:57:01 +0300
commit73e52ab55fa5036d43d20a3f3d5b02d80acf4814 (patch)
tree405292d6f26dd45dbd28654a8b5b5b0c775a08cb
parent3fec225931fd345c4d9b6fd57bc06ac6232dd789 (diff)
Fix index field name for debuggingtemp-geometry-nodes-fields--fields
-rw-r--r--source/blender/functions/tests/FN_field_test.cc7
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; };