Fix: Grease Pencil datablocks can be copied using the ID.copy() API method now
This commit is contained in:
parent
d21668de5c
commit
040b510df1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue