Fix: Assert when calling node tool

similar to f4ef3de32ba4addcfd822868793f95829d03b218

Pull Request: https://projects.blender.org/blender/blender/pulls/124220
This commit is contained in:
Pratik Borhade 2024-07-05 14:10:45 +05:30 committed by Gitea
parent b4c5334af7
commit 1ca8dce9cc

@ -1925,7 +1925,7 @@ static void add_attribute_search_button(const bContext &C,
return;
}
AttributeSearchData *data = MEM_new<AttributeSearchData>(__func__);
AttributeSearchData *data = MEM_cnew<AttributeSearchData>(__func__);
data->object_session_uid = object->id.session_uid;
STRNCPY(data->modifier_name, nmd.modifier.name);
STRNCPY(data->socket_identifier, socket.identifier);