Geometry Nodes: fix memory leak for multi input sockets
This commit is contained in:
@@ -182,7 +182,7 @@ class GeoNodeExecParams {
|
||||
Vector<T> values;
|
||||
for (GMutablePointer gvalue : gvalues) {
|
||||
if constexpr (is_stored_as_field_v<T>) {
|
||||
const Field<T> &field = *gvalue.get<Field<T>>();
|
||||
const Field<T> field = gvalue.relocate_out<Field<T>>();
|
||||
values.append(fn::evaluate_constant_field(field));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user