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:
authorJacques Lucke <jacques@blender.org>2022-03-18 12:57:45 +0300
committerJacques Lucke <jacques@blender.org>2022-03-18 12:57:45 +0300
commit2252bc6a5527cd7360d1ccfe7a2d1bc640a8dfa6 (patch)
treebb6f8921b9977dc2c387b750a29aa6ded06ec5f9 /source/blender/functions/FN_field.hh
parent7509a741166c97f5f87ed9e580eef6f99eb1e62a (diff)
BLI: move CPPType to blenlib
For more detail about `CPPType`, see `BLI_cpp_type.hh` and D14367. Differential Revision: https://developer.blender.org/D14367
Diffstat (limited to 'source/blender/functions/FN_field.hh')
-rw-r--r--source/blender/functions/FN_field.hh6
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.