diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-08-19 17:30:41 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-08-19 21:32:20 +0300 |
commit | beab06b242df87fb01a9defc9134322bb030054a (patch) | |
tree | 8e9cbd2e0113ee8231a13836d9a514b151a6f348 /source/blender/editors/gpencil/gpencil_paint.c | |
parent | d1017027afff801b0dcf29eca7d971fdee4a29b4 (diff) |
GPencil: Change UI scale for z-depth offset
Actually, the value for this parameter must be in the order of 0.00001 and this makes the UI uncomfortable.
Now, the value is divided by 1000 internally and the UI values are more logic.
Reviewers: mendio, pepeland
Differential Revision: https://developer.blender.org/D5528
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index ee78a947b55..900883bd0af 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -423,7 +423,7 @@ static void gp_stroke_convertcoords(tGPsdata *p, const float mval[2], float out[ /* add small offset to keep stroke over the surface */ if ((depth) && (gpd->zdepth_offset > 0.0f) && (*p->align_flag & GP_PROJECT_DEPTH_VIEW)) { - *depth *= (1.0f - gpd->zdepth_offset); + *depth *= (1.0f - (gpd->zdepth_offset / 1000.0f)); } int mval_i[2]; |