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>2021-04-01 16:55:08 +0300
committerJacques Lucke <jacques@blender.org>2021-04-01 16:55:23 +0300
commitb5c2c3aba886f521a0cade5b8450683c20843d3a (patch)
tree46878da186ccb49b2bcc3e1de816476aea5cf750 /source/blender/nodes/intern/type_callbacks.cc
parentf674976edd884d7a9a409042708f2b1169fd4e98 (diff)
BLI: rename resource collector to resource scope
Differential Revision: https://developer.blender.org/D10857
Diffstat (limited to 'source/blender/nodes/intern/type_callbacks.cc')
-rw-r--r--source/blender/nodes/intern/type_callbacks.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/type_callbacks.cc b/source/blender/nodes/intern/type_callbacks.cc
index 26eeaebc6d4..5160432aea5 100644
--- a/source/blender/nodes/intern/type_callbacks.cc
+++ b/source/blender/nodes/intern/type_callbacks.cc
@@ -64,7 +64,8 @@ void socket_expand_in_mf_network(SocketMFNetworkBuilder &builder)
}
else if (socket.typeinfo->get_cpp_value != nullptr) {
const CPPType &type = *socket_cpp_type_get(*socket.typeinfo);
- void *buffer = builder.resources().linear_allocator().allocate(type.size(), type.alignment());
+ void *buffer = builder.resource_scope().linear_allocator().allocate(type.size(),
+ type.alignment());
socket.typeinfo->get_cpp_value(socket, buffer);
builder.set_constant_value(type, buffer);
}