Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_channels_edit.c
| Show First 20 Lines • Show All 1,721 Lines • ▼ Show 20 Lines | switch (ale->type) { | ||||
| } | } | ||||
| case ANIMTYPE_GPLAYER: | case ANIMTYPE_GPLAYER: | ||||
| { | { | ||||
| /* Grease Pencil layer */ | /* Grease Pencil layer */ | ||||
| bGPdata *gpd = (bGPdata *)ale->id; | bGPdata *gpd = (bGPdata *)ale->id; | ||||
| bGPDlayer *gpl = (bGPDlayer *)ale->data; | bGPDlayer *gpl = (bGPDlayer *)ale->data; | ||||
| /* try to delete the layer's data and the layer itself */ | /* try to delete the layer's data and the layer itself */ | ||||
| BKE_gpencil_free_frames(gpl); | BKE_gpencil_layer_delete(gpd, gpl); | ||||
| BLI_freelinkN(&gpd->layers, gpl); | |||||
| break; | break; | ||||
| } | } | ||||
| case ANIMTYPE_MASKLAYER: | case ANIMTYPE_MASKLAYER: | ||||
| { | { | ||||
| /* Mask layer */ | /* Mask layer */ | ||||
| Mask *mask = (Mask *)ale->id; | Mask *mask = (Mask *)ale->id; | ||||
| MaskLayer *masklay = (MaskLayer *)ale->data; | MaskLayer *masklay = (MaskLayer *)ale->data; | ||||
| ▲ Show 20 Lines • Show All 1,520 Lines • Show Last 20 Lines | |||||