diff options
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_utils.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c index 86df452f49a..99cf2b52df7 100644 --- a/source/blender/editors/gpencil/gpencil_utils.c +++ b/source/blender/editors/gpencil/gpencil_utils.c @@ -991,6 +991,10 @@ void gpencil_stroke_convertcoords_tpoint(Scene *scene, { ToolSettings *ts = scene->toolsettings; + if (depth && (*depth == DEPTH_INVALID)) { + depth = NULL; + } + int mval_i[2]; round_v2i_v2fl(mval_i, &point2D->x); |