From 9c41bf4fa239bf13a935ef81293f337d61683dea Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 13 Jun 2024 19:16:43 +0200 Subject: [PATCH] IDProps: Make GeometryNode modifier properties statically typed. Conceptually, these are the same as IDProps used for regular dynamic RNA data (should have been done that way from the beginning). At least make them statically typed, to avoid all kind of issues when the IDProp type change and does not match expectations from the geometry nodes anymore. Ref. #122743. Pull Request: https://projects.blender.org/blender/blender/pulls/122891 --- source/blender/nodes/intern/geometry_nodes_execute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/nodes/intern/geometry_nodes_execute.cc b/source/blender/nodes/intern/geometry_nodes_execute.cc index 8dc0a5fc0f8..bfd0590cc81 100644 --- a/source/blender/nodes/intern/geometry_nodes_execute.cc +++ b/source/blender/nodes/intern/geometry_nodes_execute.cc @@ -1052,7 +1052,7 @@ void update_input_properties_from_node_tree(const bNodeTree &tree, continue; } - new_prop->flag |= IDP_FLAG_OVERRIDABLE_LIBRARY; + new_prop->flag |= IDP_FLAG_OVERRIDABLE_LIBRARY | IDP_FLAG_STATIC_TYPE; if (socket.description && socket.description[0] != '\0') { IDPropertyUIData *ui_data = IDP_ui_data_ensure(new_prop); ui_data->description = BLI_strdup(socket.description);