Commit: 4dd0a90f421387e6362315c294033f59dc94c0b6
Author: Antonioya
Date:   Tue Jan 1 16:44:10 2019 +0100
Branches: master
https://developer.blender.org/rB4dd0a90f421387e6362315c294033f59dc94c0b6

GP: Don't use offset for Stroke projection

The offset is only used in Surface mode.

===================================================================

M       source/blender/editors/gpencil/gpencil_paint.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_paint.c 
b/source/blender/editors/gpencil/gpencil_paint.c
index 9ec35105afd..ff9678550f9 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -370,7 +370,10 @@ static void gp_stroke_convertcoords(tGPsdata *p, const 
float mval[2], float out[
        if (gpd->runtime.sbuffer_sflag & GP_STROKE_3DSPACE) {
 
                /* add small offset to keep stroke over the surface */
-               if ((depth) && (gpd->zdepth_offset > 0.0f)) {
+               if ((depth) &&
+                       (gpd->zdepth_offset > 0.0f) &&
+                       (*p->align_flag & GP_PROJECT_DEPTH_VIEW))
+               {
                        *depth *= (1.0f - gpd->zdepth_offset);
                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to