GP: Fix unreported surface missing strokes
authorAntonioya <blendergit@gmail.com>
Thu, 30 Aug 2018 14:42:03 +0000 (16:42 +0200)
committerAntonioya <blendergit@gmail.com>
Thu, 30 Aug 2018 14:42:52 +0000 (16:42 +0200)
commita9664fa6662d5ca03c8bc4f43398d4ffe2a65f35
tree55cb7e878ae450f27459f76ea8f911f095159664
parent9f78f471d7aeacd357349f0eb4b8f8bbc01db756
GP: Fix unreported surface missing strokes

When drawing in surface mode if the stroke z-depth was not valid, the stroke was created, but it was not visible because location was something illogical.

Now, if the z-depth cannot be calculated, the stroke is calculated as it was done in other modes.
source/blender/editors/gpencil/gpencil_paint.c