diff options
author | Jacques Lucke <jacques@blender.org> | 2021-02-18 14:40:27 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-02-18 14:40:27 +0300 |
commit | 0fe5be352558c487e24724fca4c2cb9f53a724e6 (patch) | |
tree | 099c4bbf9f4da84f53799266f5e5f87f92d1265e /source/blender/nodes/NOD_geometry_exec.hh | |
parent | e1fe1fcc79377645cca1286c80f3aeee5b736388 (diff) |
Cleanup: return const reference instead of copy
There isn't really a reason for why this has to return a copy of
the data instead of a reference.
Diffstat (limited to 'source/blender/nodes/NOD_geometry_exec.hh')
-rw-r--r-- | source/blender/nodes/NOD_geometry_exec.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/nodes/NOD_geometry_exec.hh b/source/blender/nodes/NOD_geometry_exec.hh index d5fd3ff0abb..e648d77337b 100644 --- a/source/blender/nodes/NOD_geometry_exec.hh +++ b/source/blender/nodes/NOD_geometry_exec.hh @@ -133,11 +133,8 @@ class GeoNodeExecParams { /** * Get the input value for the input socket with the given identifier. - * - * This makes a copy of the value, which is fine for most types but should be avoided for - * geometry sets. */ - template<typename T> T get_input(StringRef identifier) const + template<typename T> const T &get_input(StringRef identifier) const { #ifdef DEBUG this->check_extract_input(identifier, &CPPType::get<T>()); |