Commit: 73e52ab55fa5036d43d20a3f3d5b02d80acf4814 Author: Hans Goudey Date: Mon Aug 30 17:57:01 2021 -0500 Branches: temp-geometry-nodes-fields--fields https://developer.blender.org/rB73e52ab55fa5036d43d20a3f3d5b02d80acf4814
Fix index field name for debugging =================================================================== M source/blender/functions/tests/FN_field_test.cc =================================================================== 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; }; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs