Fix #111490: paint radius set to 1 (shift-smoothing but brush missing) #111516
@ -13,6 +13,8 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "CLG_log.h"
|
||||
|
||||
#include "BLI_array_utils.h"
|
||||
#include "BLI_color.hh"
|
||||
#include "BLI_color_mix.hh"
|
||||
@ -76,6 +78,8 @@ using namespace blender::color;
|
||||
using namespace blender::ed::sculpt_paint; /* For vwpaint namespace. */
|
||||
using blender::ed::sculpt_paint::vwpaint::NormalAnglePrecalc;
|
||||
|
||||
static CLG_LogRef LOG = {"ed.sculpt_paint"};
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Utilities
|
||||
* \{ */
|
||||
@ -598,9 +602,7 @@ void smooth_brush_toggle_on(const bContext *C, Paint *paint, StrokeCache *cache)
|
||||
* same, see comments for eBrushVertexPaintTool & eBrushWeightPaintTool. */
|
||||
Brush *smooth_brush = BKE_paint_toolslots_brush_get(paint, WPAINT_TOOL_BLUR);
|
||||
if (!smooth_brush) {
|
||||
printf(
|
||||
"WARNING: Switching to the blur (smooth) brush not possible, corresponding brush not "
|
||||
"found\n");
|
||||
CLOG_WARN(&LOG, "Switching to the blur (smooth) brush not possible, corresponding brush not");
|
||||
cache->saved_active_brush_name[0] = '\0';
|
||||
return;
|
||||
}
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "CLG_log.h"
|
||||
|
||||
#include "BLI_array_utils.hh"
|
||||
#include "BLI_blenlib.h"
|
||||
#include "BLI_dial_2d.h"
|
||||
@ -85,6 +87,8 @@ using blender::Set;
|
||||
using blender::Span;
|
||||
using blender::Vector;
|
||||
|
||||
static CLG_LogRef LOG = {"ed.sculpt_paint"};
|
||||
|
||||
static float sculpt_calc_radius(ViewContext *vc,
|
||||
const Brush *brush,
|
||||
const Scene *scene,
|
||||
@ -4364,7 +4368,7 @@ static void smooth_brush_toggle_on(const bContext *C, Paint *paint, StrokeCache
|
||||
/* Switch to the smooth brush if possible. */
|
||||
Brush *smooth_brush = BKE_paint_toolslots_brush_get(paint, SCULPT_TOOL_SMOOTH);
|
||||
if (!smooth_brush) {
|
||||
printf("WARNING: Switching to the smooth brush not possible, corresponding brush not found\n");
|
||||
CLOG_WARN(&LOG, "Switching to the smooth brush not possible, corresponding brush not");
|
||||
cache->saved_active_brush_name[0] = '\0';
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user