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-09-06 21:54:39 +0300
committerJacques Lucke <jacques@blender.org>2021-09-06 21:54:56 +0300
commit2012469accc617326220df7fd5b0d00c07961f16 (patch)
tree2311d09566db264ef0c8be9d864853839452eac2
parent713da0fcc4833b45c3a11d85f376c3a97909576d (diff)
fix exposed string property
-rw-r--r--source/blender/modifiers/intern/MOD_nodes.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index b2e2e97a961..10237ac13c7 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -438,7 +438,9 @@ static void init_socket_cpp_value_from_property(const IDProperty &property,
break;
}
case SOCK_STRING: {
- new (r_value) std::string(IDP_String(&property));
+ std::string value = IDP_String(&property);
+ new (r_value)
+ blender::fn::Field<std::string>(blender::fn::make_constant_field(std::move(value)));
break;
}
case SOCK_OBJECT: {