Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_nla/nla_edit.c
| Show First 20 Lines • Show All 396 Lines • ▼ Show 20 Lines | static int nlaedit_previewrange_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_FRAME, ac.scene); | WM_event_add_notifier(C, NC_SCENE | ND_FRAME, ac.scene); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void NLA_OT_previewrange_set(wmOperatorType *ot) | void NLA_OT_previewrange_set(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Auto-Set Preview Range"; | ot->name = "Set Preview Range to Selected"; | ||||
| ot->idname = "NLA_OT_previewrange_set"; | ot->idname = "NLA_OT_previewrange_set"; | ||||
| ot->description = "Automatically set Preview Range based on range of keyframes"; | ot->description = "Set Preview Range based on extends of selected strips"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = nlaedit_previewrange_exec; | ot->exec = nlaedit_previewrange_exec; | ||||
| ot->poll = ED_operator_nla_active; | ot->poll = ED_operator_nla_active; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,383 Lines • Show Last 20 Lines | |||||