Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/space_sequencer.c
| Show First 20 Lines • Show All 451 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /* ************* end drop *********** */ | /* ************* end drop *********** */ | ||||
| /* DO NOT make this static, this hides the symbol and breaks API generation script. */ | /* DO NOT make this static, this hides the symbol and breaks API generation script. */ | ||||
| extern const char *sequencer_context_dir[]; /* Quiet warning. */ | extern const char *sequencer_context_dir[]; /* Quiet warning. */ | ||||
| const char *sequencer_context_dir[] = {"edit_mask", NULL}; | const char *sequencer_context_dir[] = {"edit_mask", NULL}; | ||||
| static int sequencer_context(const bContext *C, const char *member, bContextDataResult *result) | static int /*eContextResult*/ sequencer_context(const bContext *C, | ||||
| const char *member, | |||||
| bContextDataResult *result) | |||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| if (CTX_data_dir(member)) { | if (CTX_data_dir(member)) { | ||||
| CTX_data_dir_set(result, sequencer_context_dir); | CTX_data_dir_set(result, sequencer_context_dir); | ||||
| return true; | return CTX_RESULT_OK; | ||||
| } | } | ||||
| if (CTX_data_equals(member, "edit_mask")) { | if (CTX_data_equals(member, "edit_mask")) { | ||||
| Mask *mask = BKE_sequencer_mask_get(scene); | Mask *mask = BKE_sequencer_mask_get(scene); | ||||
| if (mask) { | if (mask) { | ||||
| CTX_data_id_pointer_set(result, &mask->id); | CTX_data_id_pointer_set(result, &mask->id); | ||||
| } | } | ||||
| return true; | return CTX_RESULT_OK; | ||||
| } | } | ||||
| return false; | return CTX_RESULT_MEMBER_NOT_FOUND; | ||||
| } | } | ||||
| static void SEQUENCER_GGT_navigate(wmGizmoGroupType *gzgt) | static void SEQUENCER_GGT_navigate(wmGizmoGroupType *gzgt) | ||||
| { | { | ||||
| VIEW2D_GGT_navigate_impl(gzgt, "SEQUENCER_GGT_navigate"); | VIEW2D_GGT_navigate_impl(gzgt, "SEQUENCER_GGT_navigate"); | ||||
| } | } | ||||
| static void sequencer_gizmos(void) | static void sequencer_gizmos(void) | ||||
| ▲ Show 20 Lines • Show All 481 Lines • Show Last 20 Lines | |||||