diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-12 13:38:03 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-12 13:38:03 +0300 |
commit | 838b1742fb99f7d0eba203313b6faa3cfc89ef8d (patch) | |
tree | ae6d98d34bcf27cf8b8d750af2d52d456ce8279f /source/blender/functions/FN_multi_function_param_type.hh | |
parent | 404486e66c6a4ebebb085700d58b396597146add (diff) |
Functions: minor improvements
Diffstat (limited to 'source/blender/functions/FN_multi_function_param_type.hh')
-rw-r--r-- | source/blender/functions/FN_multi_function_param_type.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/functions/FN_multi_function_param_type.hh b/source/blender/functions/FN_multi_function_param_type.hh index 0e43e355b53..7c16b8cdf10 100644 --- a/source/blender/functions/FN_multi_function_param_type.hh +++ b/source/blender/functions/FN_multi_function_param_type.hh @@ -144,6 +144,11 @@ class MFParamType { return ELEM(interface_type_, Output, Mutable); } + bool is_output() const + { + return interface_type_ == Output; + } + friend bool operator==(const MFParamType &a, const MFParamType &b); friend bool operator!=(const MFParamType &a, const MFParamType &b); }; |