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:
Diffstat (limited to 'source/blender/nodes/NOD_geometry_exec.hh')
-rw-r--r--source/blender/nodes/NOD_geometry_exec.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/nodes/NOD_geometry_exec.hh b/source/blender/nodes/NOD_geometry_exec.hh
index fe6dc732898..70e2af6c7fb 100644
--- a/source/blender/nodes/NOD_geometry_exec.hh
+++ b/source/blender/nodes/NOD_geometry_exec.hh
@@ -55,7 +55,14 @@ class GValueByName {
}
}
- /* Add a value to the container. */
+ /* Add a value to the container. The container is responsible for destructing the value that is
+ * passed in. */
+ void transfer_ownership_in(StringRef name, GMutablePointer value)
+ {
+ values_.add_new(name, value);
+ }
+
+ /* Add a value to the container. The caller remains responsible for destructing the value. */
void move_in(StringRef name, GMutablePointer value)
{
const CPPType &type = *value.type();