From 928becec60d16880838dd756cc8b6b5ee73f9b2d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 1 May 2019 18:10:34 +1000 Subject: UV Sculpt: improve tool-system integration In 2.7x UV sculpt was a kind of sub-mode (a toggle with it's own key-map & drawing code). Move this to an operator that uses the tool-system, this simplifies internal logic, especially brush selection which now matches sculpt and other paint modes. - Remove toggle used to enable uv sculpt. - Expose the brush, which was already used but there was no way to select different brushes. - Make UV sculpt use paint paint tool slots (using brushes how all other paint mode currently do). - Move UV Sculpt keymap to the tools keymap. - Remove Q to toggle UV sculpt mode, S/P/G keys to switch tools. --- source/blender/blenloader/intern/versioning_defaults.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index c54e60a7635..45c2a50cc3f 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -387,6 +387,13 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template) copy_v2_fl2(scene->safe_areas.action, 0.035f, 0.035f); } + if (app_template == NULL) { + /* Enable for UV sculpt (other brush types will be created as needed), + * without this the grab brush will be active but not selectable from the list. */ + Brush *brush = BLI_findstring(&bmain->brushes, "Grab", offsetof(ID, name) + 2); + brush->ob_mode |= OB_MODE_EDIT; + } + for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) { brush->blur_kernel_radius = 2; } -- cgit v1.2.3