diff options
author | Julian Eisel <julian_eisel@web.de> | 2015-02-17 05:26:03 +0300 |
---|---|---|
committer | Julian Eisel <julian_eisel@web.de> | 2015-02-17 05:26:03 +0300 |
commit | 0294327615bb14655b03e0d9f0e0ce6e28ff2e7c (patch) | |
tree | 25ff6031e999c6e016d53438ac9545c2cd16d228 /source/blender/editors/space_view3d/space_view3d.c | |
parent | 4bb331dfd5f3d9a42140e8f12bb917c525eeb529 (diff) |
Hide 3D Cursor in Paint Modes (with exceptions)
= Hide 3D Cursor in Paint Modes (with exceptions)
In paint modes, the 3D Cursor mostly is rather useless so it's more annoying than useful. This patch aims to hide the cursor in cases it's not used.
Included exceptions (cases where cursor is drawn in paint modes):
* Active object is in weight paint mode and a selected bone in pose mode can be found
* Clone brush (only if //Clone from paint slot// is disabled)
There might be more exceptions where the cursor should be shown in paint modes, but those are all I could find for now. Feel free to hint me for more.
Note: After D1110 was rejected, Campbell and me discussed this a bit more on IRC and agreed that this behaviour might be a good solution.
Reviewers: psy-fi, campbellbarton
Reviewed By: psy-fi, campbellbarton
Projects: #user_interface
Differential Revision: https://developer.blender.org/D1113
Diffstat (limited to 'source/blender/editors/space_view3d/space_view3d.c')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index ff212a1d74e..a564de8e005 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -904,8 +904,15 @@ static void view3d_main_area_listener(bScreen *sc, ScrArea *sa, ARegion *ar, wmN ED_region_tag_redraw(ar); break; case NC_BRUSH: - if (wmn->action == NA_EDITED) - ED_region_tag_redraw_overlay(ar); + switch (wmn->action) { + case NA_EDITED: + ED_region_tag_redraw_overlay(ar); + /* used on brush changes - needed because 3d cursor + * has to be drawn if clone brush is selected */ + case NA_SELECTED: + ED_region_tag_redraw(ar); + break; + } break; case NC_MATERIAL: switch (wmn->data) { |