Fix T60022: Crash when adding grease pencil object to a collection disabled in viewport.
authorAntonioya <blendergit@gmail.com>
Thu, 3 Jan 2019 17:10:39 +0000 (18:10 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 3 Jan 2019 17:12:25 +0000 (18:12 +0100)
commita30bdcc142f1241a302107c637fd47be06073d76
treefb35779851e20dc36984d8d41139298e65b720c4
parent4b2198a96ac368fa5f2a353c7c148e015246cccf
Fix T60022: Crash when adding grease pencil object to a collection disabled in viewport.

See D4163

Thanks to Habib Gahbiche (@zazizizou) for the fix.
source/blender/editors/gpencil/gpencil_add_monkey.c
source/blender/editors/gpencil/gpencil_add_stroke.c
source/blender/editors/gpencil/gpencil_data.c
source/blender/editors/gpencil/gpencil_utils.c
source/blender/editors/include/ED_gpencil.h
source/blender/editors/object/object_add.c