Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_channels_defines.c
| Context not available. | |||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| #include "BKE_curve.h" | #include "BKE_curve.h" | ||||
| #include "BKE_gpencil.h" | |||||
| #include "BKE_key.h" | #include "BKE_key.h" | ||||
| #include "BKE_nla.h" | #include "BKE_nla.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| Context not available. | |||||
| #include "BIF_gl.h" | #include "BIF_gl.h" | ||||
| #include "DEG_depsgraph.h" | |||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| Context not available. | |||||
| return ICON_OUTLINER_OB_SURFACE; | return ICON_OUTLINER_OB_SURFACE; | ||||
| case OB_EMPTY: | case OB_EMPTY: | ||||
| return ICON_OUTLINER_OB_EMPTY; | return ICON_OUTLINER_OB_EMPTY; | ||||
| case OB_GPENCIL: | |||||
| return ICON_OUTLINER_OB_GREASEPENCIL; | |||||
| default: | default: | ||||
| return ICON_OBJECT_DATA; | return ICON_OBJECT_DATA; | ||||
| } | } | ||||
| Context not available. | |||||
| return; | return; | ||||
| } | } | ||||
| if (ale_setting->type == ANIMTYPE_GPLAYER) | if (ale_setting->type == ANIMTYPE_GPLAYER) { | ||||
| /* draw cache updates for settings that affect the visible strokes */ | |||||
| if (setting == ACHANNEL_SETTING_VISIBLE) { | |||||
| bGPdata *gpd = (bGPdata *)ale_setting->id; | |||||
| DEG_id_tag_update(&gpd->id, OB_RECALC_OB | OB_RECALC_DATA); | |||||
| } | |||||
| /* UI updates */ | |||||
| WM_event_add_notifier(C, NC_GPENCIL | ND_DATA, NULL); | WM_event_add_notifier(C, NC_GPENCIL | ND_DATA, NULL); | ||||
| } | |||||
| /* verify animation context */ | /* verify animation context */ | ||||
| if (ANIM_animdata_get_context(C, &ac) == 0) | if (ANIM_animdata_get_context(C, &ac) == 0) | ||||
| Context not available. | |||||