Fix: Grease Pencil datablocks can be copied using the ID.copy() API method now

This commit is contained in:
Joshua Leung 2015-02-10 23:30:30 +13:00
parent d21668de5c
commit 040b510df1
1 changed files with 1 additions and 0 deletions

View File

@ -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);