Fix #136131: crash calling valid_socket_type on custom node trees
This was likely introduced when `socket_type->idname` was changed from `char[]` to `std::string`.
This commit is contained in:
@@ -1011,7 +1011,7 @@ static bool rna_NodeTree_valid_socket_type(blender::bke::bNodeTreeType *ntreetyp
|
||||
func = &rna_NodeTree_valid_socket_type_func;
|
||||
|
||||
RNA_parameter_list_create(&list, &ptr, func);
|
||||
RNA_parameter_set_lookup(&list, "idname", &socket_type->idname);
|
||||
RNA_parameter_set_lookup(&list, "idname", socket_type->idname.c_str());
|
||||
ntreetype->rna_ext.call(nullptr, &ptr, func, &list);
|
||||
|
||||
RNA_parameter_get_lookup(&list, "valid", &ret);
|
||||
|
||||
Reference in New Issue
Block a user