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:
authorAntonioya <blendergit@gmail.com>2018-09-07 10:29:33 +0300
committerAntonioya <blendergit@gmail.com>2018-09-07 10:29:33 +0300
commit9c12f589080a6bd4fc452e6b6044914ce49f9341 (patch)
tree6bfbf76ba551e3cf262367a71fcaad3895e2dc61
parent49fa58e3309f7f980f2bfe184ceef541a9bfdfaf (diff)
GP: Fix unreported crash when use Alt key in Surface draw
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c2
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 da03da7b40e..27eba6581db 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -386,7 +386,7 @@ static void gp_stroke_convertcoords(tGPsdata *p, const int mval[2], float out[3]
/* verify valid zdepth, if it's wrong, the default darwing mode is used
* and the function doesn't return now */
- if (*depth <= 1.0f) {
+ if ((depth == NULL) || (*depth <= 1.0f)) {
return;
}
}