diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-15 18:21:07 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-15 18:21:07 +0300 |
commit | da9b1b14ed0ffd29fcff8f4ca64fff5f034532fc (patch) | |
tree | f02c859d3d6ff3971de18390e720146a7181f5de /source/blender/editors/gpencil | |
parent | 2e25a48b05004112344b04cd56760709eebfc1a4 (diff) |
Cleanup: some more G.main removal/validation...
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_undo.c b/source/blender/editors/gpencil/gpencil_undo.c index 5e2be7c41f0..d35df8bc380 100644 --- a/source/blender/editors/gpencil/gpencil_undo.c +++ b/source/blender/editors/gpencil/gpencil_undo.c @@ -179,7 +179,7 @@ void gpencil_undo_push(bGPdata *gpd) /* create new undo node */ undo_node = MEM_callocN(sizeof(bGPundonode), "gpencil undo node"); - undo_node->gpd = BKE_gpencil_data_duplicate(G.main, gpd, true); + undo_node->gpd = BKE_gpencil_data_duplicate(NULL, gpd, true); cur_node = undo_node; |