Merge branch 'blender-v3.3-release'
This commit is contained in:
commit
4694d497b7
|
@ -2076,6 +2076,9 @@ static void gpencil_brush_delete_mode_brushes(Main *bmain,
|
|||
}
|
||||
|
||||
BKE_brush_delete(bmain, brush);
|
||||
if (brush == brush_active) {
|
||||
brush_active = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2109,8 +2112,8 @@ static int gpencil_brush_reset_all_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
|
||||
char tool = '0';
|
||||
if (paint) {
|
||||
Brush *brush_active = paint->brush;
|
||||
if (brush_active) {
|
||||
if (paint->brush) {
|
||||
Brush *brush_active = paint->brush;
|
||||
switch (mode) {
|
||||
case CTX_MODE_PAINT_GPENCIL: {
|
||||
tool = brush_active->gpencil_tool;
|
||||
|
|
Loading…
Reference in New Issue