From 95ec6e4dd373f58eebf3119e470ead4156c724b4 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 24 Sep 2021 16:02:59 +0200 Subject: Geometry Nodes: make index field more reusable Some inputs will be the index field implicitly, so we want this class to be available outside of `node_geo_input_index.cc`. --- source/blender/functions/FN_field.hh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/functions/FN_field.hh') diff --git a/source/blender/functions/FN_field.hh b/source/blender/functions/FN_field.hh index d4375b625ce..3ce0993da59 100644 --- a/source/blender/functions/FN_field.hh +++ b/source/blender/functions/FN_field.hh @@ -484,4 +484,13 @@ template Field make_constant_field(T value) GField make_field_constant_if_possible(GField field); +class IndexFieldInput final : public FieldInput { + public: + IndexFieldInput(); + + const GVArray *get_varray_for_context(const FieldContext &context, + IndexMask mask, + ResourceScope &scope) const final; +}; + } // namespace blender::fn -- cgit v1.2.3