Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-09-02 23:30:36 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-09-02 23:30:59 +0300
commitfb09bc3c35b7544c46c13cc322421419948a3d52 (patch)
treed3bbd47c2857031a934850f356d74189b0ced662 /source/blender/editors/sculpt_paint/sculpt_filter_color.c
parentba4a2a4c8b827201b18e97d9dd025ef93a4db754 (diff)
Fix T80311: Sculpt Filters not working when using vertical split
All filters were using prevclicx, which is in screen coordinates and mval[0], which is in region coordinates to get the filter strength. This fixes the issue in all filters. Reviewed By: Severin Maniphest Tasks: T80311 Differential Revision: https://developer.blender.org/D8776
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_filter_color.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_filter_color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.c b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
index c5acf736f3e..89af836d095 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
@@ -228,7 +228,7 @@ static int sculpt_color_filter_modal(bContext *C, wmOperator *op, const wmEvent
return OPERATOR_RUNNING_MODAL;
}
- float len = event->prevclickx - event->mval[0];
+ const float len = event->prevclickx - event->x;
filter_strength = filter_strength * -len * 0.001f;
float fill_color[3];