diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-17 08:48:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-17 08:48:53 +0300 |
commit | a8487fc7fed94f1d658f8b6ccbe37473e6340a98 (patch) | |
tree | fd9a6b9472814798ead8aef4f34de630e569f54f /source | |
parent | 0294327615bb14655b03e0d9f0e0ce6e28ff2e7c (diff) |
etch-a-ton: fix uninitialized memory use
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/sketch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/sketch.c b/source/blender/blenkernel/intern/sketch.c index da5dd76681d..f9c5e8fb07d 100644 --- a/source/blender/blenkernel/intern/sketch.c +++ b/source/blender/blenkernel/intern/sketch.c @@ -81,6 +81,10 @@ void sk_initPoint(SK_Point *pt, SK_DrawData *dd, const float no[3]) } pt->p2d[0] = dd->mval[0]; pt->p2d[1] = dd->mval[1]; + + pt->size = 0.0f; + pt->type = PT_CONTINUOUS; + pt->mode = PT_SNAP; /* more init code here */ } |