GPencil: Fix segment fault when undo
authorAntonioya <blendergit@gmail.com>
Mon, 29 Aug 2016 20:17:57 +0000 (22:17 +0200)
committerAntonioya <blendergit@gmail.com>
Mon, 29 Aug 2016 20:17:57 +0000 (22:17 +0200)
commit5f14bc1b47f3949cb5929153fcbb1916dc6cc0a8
tree9cb70da262324ba5d42cf194f61e6a982ba2616e
parentfa092da37700b15374db50803bd7afe2a407bb55
GPencil: Fix segment fault when undo

When undo in UV/Image editor and press ESC key, there was segment fault
in Toolsettings because the reference was missing. Now the toolsetting
is loaded from context and not from local operator data.
source/blender/editors/gpencil/gpencil_paint.c