Blenloader: make BLO_read_data_address work in C++

This commit is contained in:
2020-07-09 15:29:25 +02:00
parent 544c435fdd
commit 31ad43a3c7

View File

@@ -180,7 +180,7 @@ bool BLO_write_is_undo(BlendWriter *writer);
void *BLO_read_get_new_data_address(BlendDataReader *reader, const void *old_address);
#define BLO_read_data_address(reader, ptr_p) \
*(ptr_p) = BLO_read_get_new_data_address((reader), *(ptr_p))
*((void **)ptr_p) = BLO_read_get_new_data_address((reader), *(ptr_p))
typedef void (*BlendReadListFn)(BlendDataReader *reader, void *data);
void BLO_read_list_cb(BlendDataReader *reader, struct ListBase *list, BlendReadListFn callback);