Cleanup: Remove deprecated toggle_brush field
Follow up to c89baaf768cab4dbb52a20969062325a08574d90 Pull Request: https://projects.blender.org/blender/blender/pulls/139906
This commit is contained in:
@@ -196,7 +196,6 @@ static void brush_foreach_id(ID *id, LibraryForeachIDData *data)
|
||||
{
|
||||
Brush *brush = reinterpret_cast<Brush *>(id);
|
||||
|
||||
BKE_LIB_FOREACHID_PROCESS_IDSUPER(data, brush->toggle_brush, IDWALK_CB_NOP);
|
||||
BKE_LIB_FOREACHID_PROCESS_IDSUPER(data, brush->paint_curve, IDWALK_CB_USER);
|
||||
if (brush->gpencil_settings) {
|
||||
BKE_LIB_FOREACHID_PROCESS_IDSUPER(data, brush->gpencil_settings->material, IDWALK_CB_USER);
|
||||
@@ -472,7 +471,7 @@ IDTypeInfo IDType_ID_BR = {
|
||||
/*id_code*/ Brush::id_type,
|
||||
/*id_filter*/ FILTER_ID_BR,
|
||||
/*dependencies_id_types*/
|
||||
(FILTER_ID_BR | FILTER_ID_IM | FILTER_ID_PC | FILTER_ID_TE | FILTER_ID_MA),
|
||||
(FILTER_ID_IM | FILTER_ID_PC | FILTER_ID_TE | FILTER_ID_MA),
|
||||
/*main_listbase_index*/ INDEX_ID_BR,
|
||||
/*struct_size*/ sizeof(Brush),
|
||||
/*name*/ "Brush",
|
||||
|
||||
@@ -177,9 +177,6 @@ typedef struct Brush {
|
||||
struct MTex mtex;
|
||||
struct MTex mask_mtex;
|
||||
|
||||
/* TODO (Sean): To be removed in 5.0 */
|
||||
struct Brush *toggle_brush DNA_DEPRECATED;
|
||||
|
||||
PreviewImage *preview;
|
||||
/** Color gradient. */
|
||||
struct ColorBand *gradient;
|
||||
|
||||
Reference in New Issue
Block a user