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
This commit is contained in:
Bastien Montagne
2024-06-13 19:16:43 +02:00
committed by Gitea
parent 76f03eb141
commit 9c41bf4fa2

View File

@@ -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);