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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user