Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/graph_edit.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| ot->description = "Reset viewable area to show full keyframe range"; | ot->description = "Reset viewable area to show full keyframe range"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = graphkeys_viewall_exec; | ot->exec = graphkeys_viewall_exec; | ||||
| /* XXX: unchecked poll to get fsamples working too, but makes modifier damage trickier... */ | /* XXX: unchecked poll to get fsamples working too, but makes modifier damage trickier... */ | ||||
| ot->poll = ED_operator_graphedit_active; | ot->poll = ED_operator_graphedit_active; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER; | ||||
| /* props */ | /* props */ | ||||
| ot->prop = RNA_def_boolean(ot->srna, | ot->prop = RNA_def_boolean(ot->srna, | ||||
| "include_handles", | "include_handles", | ||||
| true, | true, | ||||
| "Include Handles", | "Include Handles", | ||||
| "Include handles of keyframes when calculating extents"); | "Include handles of keyframes when calculating extents"); | ||||
| } | } | ||||
| void GRAPH_OT_view_selected(wmOperatorType *ot) | void GRAPH_OT_view_selected(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "View Selected"; | ot->name = "View Selected"; | ||||
| ot->idname = "GRAPH_OT_view_selected"; | ot->idname = "GRAPH_OT_view_selected"; | ||||
| ot->description = "Reset viewable area to show selected keyframe range"; | ot->description = "Reset viewable area to show selected keyframe range"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = graphkeys_view_selected_exec; | ot->exec = graphkeys_view_selected_exec; | ||||
| /* XXX: unchecked poll to get fsamples working too, but makes modifier damage trickier... */ | /* XXX: unchecked poll to get fsamples working too, but makes modifier damage trickier... */ | ||||
| ot->poll = ED_operator_graphedit_active; | ot->poll = ED_operator_graphedit_active; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER; | ||||
| /* props */ | /* props */ | ||||
| ot->prop = RNA_def_boolean(ot->srna, | ot->prop = RNA_def_boolean(ot->srna, | ||||
| "include_handles", | "include_handles", | ||||
| true, | true, | ||||
| "Include Handles", | "Include Handles", | ||||
| "Include handles of keyframes when calculating extents"); | "Include handles of keyframes when calculating extents"); | ||||
| } | } | ||||
| Show All 14 Lines | |||||
| ot->idname = "GRAPH_OT_view_frame"; | ot->idname = "GRAPH_OT_view_frame"; | ||||
| ot->description = "Reset viewable area to show range around current frame"; | ot->description = "Reset viewable area to show range around current frame"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = graphkeys_view_frame_exec; | ot->exec = graphkeys_view_frame_exec; | ||||
| ot->poll = ED_operator_graphedit_active; | ot->poll = ED_operator_graphedit_active; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER; | ||||
| } | } | ||||
| /* ******************** Create Ghost-Curves Operator *********************** */ | /* ******************** Create Ghost-Curves Operator *********************** */ | ||||
| /* This operator samples the data of the selected F-Curves to F-Points, storing them | /* This operator samples the data of the selected F-Curves to F-Points, storing them | ||||
| * as 'ghost curves' in the active Graph Editor | * as 'ghost curves' in the active Graph Editor | ||||
| */ | */ | ||||
| /* Bake each F-Curve into a set of samples, and store as a ghost curve */ | /* Bake each F-Curve into a set of samples, and store as a ghost curve */ | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||