diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-08 16:06:04 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-08 16:10:30 +0300 |
commit | 2b9d62b73af43a54a08a2377ddcf4f44b9456cbc (patch) | |
tree | 9e3103a9c576ec5bfa2fc021cd82df91f2df6dcb /source/blender | |
parent | 34d175f3721521c35d333d676493848a02a96366 (diff) |
Functions: Support accessing socket index of MFSocket
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/functions/FN_multi_function_network.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/functions/FN_multi_function_network.hh b/source/blender/functions/FN_multi_function_network.hh index 01860c540e3..195711a7c62 100644 --- a/source/blender/functions/FN_multi_function_network.hh +++ b/source/blender/functions/FN_multi_function_network.hh @@ -148,6 +148,7 @@ class MFSocket : NonCopyable, NonMovable { StringRefNull name() const; uint id() const; + uint index() const; const MFDataType &data_type() const; @@ -398,6 +399,11 @@ inline uint MFSocket::id() const return id_; } +inline uint MFSocket::index() const +{ + return index_; +} + inline const MFDataType &MFSocket::data_type() const { return data_type_; |