change to pressure & sculpt mode:

Ignore size+pressure when the sculpt tool doesnt use dynamic size brushes (grab, thumb for eg).

The problem was if you didnt jab the stylus on the tablet hard enough you'd end up with a tiny brush since the initial pressure was used.
This commit is contained in:
Campbell Barton
2013-01-17 04:00:51 +00:00
parent 0f981edc99
commit 2fe92248a0

View File

@@ -3906,12 +3906,13 @@ static void sculpt_update_cache_variants(bContext *C, Sculpt *sd, Object *ob,
}
}
if (BKE_brush_use_size_pressure(scene, brush)) {
if (BKE_brush_use_size_pressure(scene, brush) && paint_supports_dynamic_size(brush)) {
cache->pixel_radius *= cache->pressure;
cache->radius = cache->initial_radius * cache->pressure;
}
else
else {
cache->radius = cache->initial_radius;
}
cache->radius_squared = cache->radius * cache->radius;