From df45257ec53c795081e65a35784bd89ac8c3e83d Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Mon, 16 Dec 2019 23:16:21 +0100 Subject: Sculpt: Split normal radius and area radius This enables an extra layer of control in the sculpt brushes. For now it is enabled only in Scrape, but it should work in all brushes (like normal radius). In the future it may also be enabled in other brushes. You can tweak in this property in the scrape brush to achieve a much better behavior when working on curve surfaces and control how much volume you want to trim. In most cases, it also fixes the bug where the brush keeps trimming in the same area without disabling accumulate. It should be possible to fix some other artifacts in other brushes by tweaking this default property. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D5993 --- source/blender/blenloader/intern/versioning_280.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/blenloader/intern') diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 6062d971629..dd67a4d72cb 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -4254,6 +4254,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } } + + for (Brush *br = bmain->brushes.first; br; br = br->id.next) { + if (br->ob_mode & OB_MODE_SCULPT && br->area_radius_factor == 0.0f) { + br->area_radius_factor = 0.5f; + } + } } if (!MAIN_VERSION_ATLEAST(bmain, 282, 2)) { -- cgit v1.2.3