diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-11-22 08:03:37 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-11-22 08:05:46 +0300 |
commit | 731f3476b7b4660adc446bfb1c6061c20a7d0c1b (patch) | |
tree | ffc3fbd9125e7a2f0d988329d37a009ac907eddc /source/blender/editors/gpencil/gpencil_undo.c | |
parent | 8319a91ad4c010dc6060260b36fe5cb15c55e005 (diff) |
Fix for previous commit
gpencil_data_duplicate() was being used for gp drawing undo buffers, where using an
exact copy is exactly what we want/need. Instead, the code here now has an additional
arg for determining whether a direct copy is warranted or not.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_undo.c')
-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 ff92d69f39d..9a71c65c105 100644 --- a/source/blender/editors/gpencil/gpencil_undo.c +++ b/source/blender/editors/gpencil/gpencil_undo.c @@ -145,7 +145,7 @@ void gpencil_undo_push(bGPdata *gpd) /* create new undo node */ undo_node = MEM_callocN(sizeof(bGPundonode), "gpencil undo node"); - undo_node->gpd = gpencil_data_duplicate(gpd); + undo_node->gpd = gpencil_data_duplicate(gpd, true); cur_node = undo_node; |