diff options
author | Antonioya <blendergit@gmail.com> | 2019-03-15 12:07:18 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-03-15 12:07:18 +0300 |
commit | 98af74b9366b0e1006333fe9e493f3ea50ac952a (patch) | |
tree | d34b4ab0ecd00f7cda23a6883ecb30b8b5bc71cc /source/blender | |
parent | 41b289be30021b8fc63031aba701065f1c40ed47 (diff) |
Fix T62297: Grease Pencil dots drawing crashes Blender
Fix again this bug. Maybe it was introduced when change how wireframe mode by object works.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index ce01044a885..a50b4fac15c 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -685,7 +685,7 @@ static DRWShadingGroup *DRW_gpencil_shgroup_point_create( DRW_shgroup_uniform_float(grp, "pixfactor", &stl->storage->pixfactor, 1); } /* viewport x-ray */ - stl->shgroups[id].is_xray = (ob->dt == OB_WIRE) ? 1 : stl->storage->is_xray; + stl->shgroups[id].is_xray = ((ob) && (ob->dt == OB_WIRE)) ? 1 : stl->storage->is_xray; DRW_shgroup_uniform_int(grp, "viewport_xray", (const int *)&stl->shgroups[id].is_xray, 1); DRW_shgroup_uniform_int(grp, "shading_type", (const int *)&stl->storage->shade_render, 2); } |