diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-11-21 15:52:28 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-11-22 08:05:45 +0300 |
commit | 8319a91ad4c010dc6060260b36fe5cb15c55e005 (patch) | |
tree | 866782c2fa10159b039fdfa2569c5babb4c42932 /source | |
parent | 82aa32c3a99d788f0b9f08869dde3c595ca1554a (diff) |
Bugfix: Duplicating Grease Pencil datablocks wasn't doing so in a safe way
Grease Pencil data (bGPdata) is now a datablock, so it isn't safe to use
MEM_dupallocN() for copying new instances of these anymore.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/gpencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c index e226e9d9797..255693f0ca2 100644 --- a/source/blender/blenkernel/intern/gpencil.c +++ b/source/blender/blenkernel/intern/gpencil.c @@ -286,7 +286,7 @@ bGPdata *gpencil_data_duplicate(bGPdata *src) return NULL; /* make a copy of the base-data */ - dst = MEM_dupallocN(src); + dst = BKE_libblock_copy(&src->id); /* copy layers */ BLI_listbase_clear(&dst->layers); |