Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2015-02-10 13:30:30 +0300
committerJoshua Leung <aligorith@gmail.com>2015-02-10 13:30:30 +0300
commit040b510df1ad1bff9858344386e6fba20de133f7 (patch)
treeb1138ee100ddb08775e82d9cca37243c31043ae6
parentd21668de5c83b68c61a5fce9b09fdb9b5dab9f2f (diff)
Fix: Grease Pencil datablocks can be copied using the ID.copy() API method now
-rw-r--r--source/blender/blenkernel/intern/library.c1
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);