* removing the notifiers I added until I can discover the most lightweight way to achieve the same thing
This commit is contained in:
@@ -1237,7 +1237,7 @@ void brush_set_size(Brush *brush, int size)
|
||||
else
|
||||
brush->size= size;
|
||||
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
//WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
}
|
||||
|
||||
int brush_size(Brush *brush)
|
||||
@@ -1257,7 +1257,7 @@ void brush_set_use_locked_size(Brush *brush, int value)
|
||||
brush->flag &= ~BRUSH_LOCK_SIZE;
|
||||
}
|
||||
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
//WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
}
|
||||
|
||||
int brush_use_locked_size(Brush *brush)
|
||||
@@ -1277,7 +1277,7 @@ void brush_set_use_size_pressure(Brush *brush, int value)
|
||||
brush->flag &= ~BRUSH_SIZE_PRESSURE;
|
||||
}
|
||||
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
//WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
}
|
||||
|
||||
int brush_use_size_pressure(Brush *brush)
|
||||
@@ -1297,7 +1297,7 @@ void brush_set_use_alpha_pressure(Brush *brush, int value)
|
||||
brush->flag &= ~BRUSH_ALPHA_PRESSURE;
|
||||
}
|
||||
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
//WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
}
|
||||
|
||||
int brush_use_alpha_pressure(Brush *brush)
|
||||
@@ -1312,7 +1312,7 @@ void brush_set_unprojected_radius(Brush *brush, float unprojected_radius)
|
||||
else
|
||||
brush->unprojected_radius= unprojected_radius;
|
||||
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
//WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
}
|
||||
|
||||
float brush_unprojected_radius(Brush *brush)
|
||||
@@ -1327,7 +1327,7 @@ void brush_set_alpha(Brush *brush, float alpha)
|
||||
else
|
||||
brush->alpha= alpha;
|
||||
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
//WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush);
|
||||
}
|
||||
|
||||
float brush_alpha(Brush *brush)
|
||||
|
||||
@@ -52,7 +52,7 @@ static void rna_Brush_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
Brush *br= (Brush*)ptr->data;
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, br);
|
||||
WM_main_add_notifier(NC_SPACE|ND_SPACE_VIEW3D, NULL);
|
||||
//WM_main_add_notifier(NC_SPACE|ND_SPACE_VIEW3D, NULL);
|
||||
}
|
||||
|
||||
static int rna_Brush_is_sculpt_brush(Brush *me, bContext *C)
|
||||
|
||||
Reference in New Issue
Block a user