Refactor: Move NOP idtypes foreach_id to new IDTypeInfo structure.

This commit is contained in:
Bastien Montagne 2020-05-21 18:35:11 +02:00
parent 7e4654e4ce
commit ce74df6248
7 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,7 @@ IDTypeInfo IDType_ID_CF = {
.copy_data = cache_file_copy_data,
.free_data = cache_file_free_data,
.make_local = NULL,
.foreach_id = NULL,
};
/* TODO: make this per cache file to avoid global locks. */

View File

@ -134,6 +134,7 @@ IDTypeInfo IDType_ID_VF = {
.copy_data = vfont_copy_data,
.free_data = vfont_free_data,
.make_local = NULL,
.foreach_id = NULL,
};
/***************************** VFont *******************************/

View File

@ -199,6 +199,7 @@ IDTypeInfo IDType_ID_IM = {
.copy_data = image_copy_data,
.free_data = image_free_data,
.make_local = NULL,
.foreach_id = NULL,
};
/* prototypes */

View File

@ -123,6 +123,7 @@ IDTypeInfo IDType_ID_IP = {
.copy_data = NULL,
.free_data = ipo_free_data,
.make_local = NULL,
.foreach_id = NULL,
};
/* *************************************************** */

View File

@ -116,6 +116,7 @@ IDTypeInfo IDType_ID_PAL = {
.copy_data = palette_copy_data,
.free_data = palette_free_data,
.make_local = NULL,
.foreach_id = NULL,
};
static void paint_curve_copy_data(Main *UNUSED(bmain),
@ -153,6 +154,7 @@ IDTypeInfo IDType_ID_PC = {
.copy_data = paint_curve_copy_data,
.free_data = paint_curve_free_data,
.make_local = NULL,
.foreach_id = NULL,
};
const char PAINT_CURSOR_SCULPT[3] = {255, 100, 100};

View File

@ -127,6 +127,7 @@ IDTypeInfo IDType_ID_SO = {
.copy_data = sound_copy_data,
.free_data = sound_free_data,
.make_local = NULL,
.foreach_id = NULL,
};
#ifdef WITH_AUDASPACE

View File

@ -206,6 +206,7 @@ IDTypeInfo IDType_ID_TXT = {
.copy_data = text_copy_data,
.free_data = text_free_data,
.make_local = NULL,
.foreach_id = NULL,
};
/***/