diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-02-10 13:30:30 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-02-10 13:30:30 +0300 |
commit | 040b510df1ad1bff9858344386e6fba20de133f7 (patch) | |
tree | b1138ee100ddb08775e82d9cca37243c31043ae6 /source | |
parent | d21668de5c83b68c61a5fce9b09fdb9b5dab9f2f (diff) |
Fix: Grease Pencil datablocks can be copied using the ID.copy() API method now
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index a5691d6fef3..a2a1b1015a6 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -378,6 +378,7 @@ bool id_copy(ID *id, ID **newid, bool test) case ID_WM: return false; /* can't be copied from here */ case ID_GD: + if (!test) *newid = (ID *)gpencil_data_duplicate((bGPdata *)id, false); return false; /* not implemented */ case ID_MSK: if (!test) *newid = (ID *)BKE_mask_copy((Mask *)id); |