diff options
Diffstat (limited to 'source/blender/functions/FN_field.hh')
-rw-r--r-- | source/blender/functions/FN_field.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/functions/FN_field.hh b/source/blender/functions/FN_field.hh index 2cba833ce64..957b395e633 100644 --- a/source/blender/functions/FN_field.hh +++ b/source/blender/functions/FN_field.hh @@ -119,7 +119,7 @@ template<typename NodePtr> class GFieldBase { return get_default_hash_2(*node_, node_output_index_); } - const fn::CPPType &cpp_type() const + const CPPType &cpp_type() const { return node_->output_cpp_type(node_output_index_); } @@ -476,13 +476,13 @@ template<typename T> T evaluate_constant_field(const Field<T> &field) return value; } +GField make_constant_field(const CPPType &type, const void *value); + template<typename T> Field<T> make_constant_field(T value) { return make_constant_field(CPPType::get<T>(), &value); } -GField make_constant_field(const CPPType &type, const void *value); - /** * If the field depends on some input, the same field is returned. * Otherwise the field is evaluated and a new field is created that just computes this constant. |