diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-16 02:16:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-16 02:23:40 +0300 |
commit | 419911b1d19ceeb87cd1c0a7b78f0133bee4a6cd (patch) | |
tree | 0c57d32c290988de6a39df0819828b43b626f7c7 /source/blender/editors | |
parent | 374cbdc63bde61d590340b824039f6aa892c79e7 (diff) |
DNA: rename SpaceIpo -> SpaceGraph
Diffstat (limited to 'source/blender/editors')
17 files changed, 57 insertions, 57 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c index e21e5011e1a..48af3b82bd5 100644 --- a/source/blender/editors/animation/anim_channels_defines.c +++ b/source/blender/editors/animation/anim_channels_defines.c @@ -168,7 +168,7 @@ static bool acf_show_channel_colors(bAnimContext *ac) } case SPACE_IPO: { - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; showGroupColors = !(sipo->flag & SIPO_NODRAWGCOLORS); break; @@ -3966,7 +3966,7 @@ void ANIM_channel_draw(bAnimContext *ac, bAnimListElem *ale, float yminc, float } case SPACE_IPO: { - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; draw_sliders = (sipo->flag & SIPO_SLIDERS); break; } @@ -4573,7 +4573,7 @@ void ANIM_channel_draw_widgets(const bContext *C, bAnimContext *ac, bAnimListEle } case SPACE_IPO: { - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; draw_sliders = (sipo->flag & SIPO_SLIDERS); break; } diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index 2a1f8d2b99f..032bc778ff7 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -1439,7 +1439,7 @@ static bool animchannels_grouping_poll(bContext *C) } case SPACE_IPO: { - SpaceIpo *sipo = (SpaceIpo *)sl; + SpaceGraph *sipo = (SpaceGraph *)sl; /* drivers can't have groups... */ if (sipo->mode != SIPO_MODE_ANIMATION) diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c index 6ef6992b323..d6320eb92ff 100644 --- a/source/blender/editors/animation/anim_draw.c +++ b/source/blender/editors/animation/anim_draw.c @@ -331,7 +331,7 @@ void ANIM_nla_mapping_apply_fcurve(AnimData *adt, FCurve *fcu, bool restore, boo short ANIM_get_normalization_flags(bAnimContext *ac) { if (ac->sl->spacetype == SPACE_IPO) { - SpaceIpo *sipo = (SpaceIpo *) ac->sl; + SpaceGraph *sipo = (SpaceGraph *) ac->sl; bool use_normalization = (sipo->flag & SIPO_NORMALIZE) != 0; bool freeze_normalization = (sipo->flag & SIPO_NORMALIZE_FREEZE) != 0; return use_normalization diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c index 7c6656b9104..ca9205cdd47 100644 --- a/source/blender/editors/animation/anim_filter.c +++ b/source/blender/editors/animation/anim_filter.c @@ -268,7 +268,7 @@ static bool actedit_get_context(bAnimContext *ac, SpaceAction *saction) /* ----------- Private Stuff - Graph Editor ------------- */ /* Get data being edited in Graph Editor (depending on current 'mode') */ -static bool graphedit_get_context(bAnimContext *ac, SpaceIpo *sipo) +static bool graphedit_get_context(bAnimContext *ac, SpaceGraph *sipo) { /* init dopesheet data if non-existent (i.e. for old files) */ if (sipo->ads == NULL) { @@ -359,7 +359,7 @@ bool ANIM_animdata_context_getdata(bAnimContext *ac) } case SPACE_IPO: { - SpaceIpo *sipo = (SpaceIpo *)sl; + SpaceGraph *sipo = (SpaceGraph *)sl; ok = graphedit_get_context(ac, sipo); break; } diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index c6acfa51caa..dfce465c01e 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -712,7 +712,7 @@ static bool ed_marker_move_use_time(MarkerMove *mm) { if (((mm->slink->spacetype == SPACE_SEQ) && !(((SpaceSeq *)mm->slink)->flag & SEQ_DRAWFRAMES)) || ((mm->slink->spacetype == SPACE_ACTION) && (((SpaceAction *)mm->slink)->flag & SACTION_DRAWTIME)) || - ((mm->slink->spacetype == SPACE_IPO) && !(((SpaceIpo *)mm->slink)->flag & SIPO_DRAWTIME)) || + ((mm->slink->spacetype == SPACE_IPO) && !(((SpaceGraph *)mm->slink)->flag & SIPO_DRAWTIME)) || ((mm->slink->spacetype == SPACE_NLA) && !(((SpaceNla *)mm->slink)->flag & SNLA_DRAWTIME))) { return true; diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c index d90b571005b..a645dc50722 100644 --- a/source/blender/editors/space_graph/graph_buttons.c +++ b/source/blender/editors/space_graph/graph_buttons.c @@ -108,7 +108,7 @@ static bool graph_panel_poll(const bContext *C, PanelType *UNUSED(pt)) static void graph_panel_view(const bContext *C, Panel *pa) { bScreen *sc = CTX_wm_screen(C); - SpaceIpo *sipo = CTX_wm_space_graph(C); + SpaceGraph *sipo = CTX_wm_space_graph(C); Scene *scene = CTX_data_scene(C); PointerRNA spaceptr, sceneptr; uiLayout *col, *sub, *row; @@ -576,7 +576,7 @@ static void driver_update_flags_cb(bContext *UNUSED(C), void *fcu_v, void *UNUSE /* drivers panel poll */ static bool graph_panel_drivers_poll(const bContext *C, PanelType *UNUSED(pt)) { - SpaceIpo *sipo = CTX_wm_space_graph(C); + SpaceGraph *sipo = CTX_wm_space_graph(C); if (sipo->mode != SIPO_MODE_DRIVERS) return 0; diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index 19b905c874f..89ea596ceba 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -304,7 +304,7 @@ static void draw_fcurve_vertices(ARegion *ar, FCurve *fcu, bool do_handles, bool /* Handles ---------------- */ -static bool draw_fcurve_handles_check(SpaceIpo *sipo, FCurve *fcu) +static bool draw_fcurve_handles_check(SpaceGraph *sipo, FCurve *fcu) { /* don't draw handle lines if handles are not to be shown */ if ( @@ -332,7 +332,7 @@ static bool draw_fcurve_handles_check(SpaceIpo *sipo, FCurve *fcu) /* draw lines for F-Curve handles only (this is only done in EditMode) * note: draw_fcurve_handles_check must be checked before running this. */ -static void draw_fcurve_handles(SpaceIpo *sipo, FCurve *fcu) +static void draw_fcurve_handles(SpaceGraph *sipo, FCurve *fcu) { int sel, b; @@ -446,7 +446,7 @@ static void draw_fcurve_sample_control(float x, float y, float xscale, float ysc } /* helper func - draw keyframe vertices only for an F-Curve */ -static void draw_fcurve_samples(SpaceIpo *sipo, ARegion *ar, FCurve *fcu) +static void draw_fcurve_samples(SpaceGraph *sipo, ARegion *ar, FCurve *fcu) { FPoint *first, *last; float hsize, xscale, yscale; @@ -485,7 +485,7 @@ static void draw_fcurve_samples(SpaceIpo *sipo, ARegion *ar, FCurve *fcu) /* helper func - just draw the F-Curve by sampling the visible region (for drawing curves with modifiers) */ static void draw_fcurve_curve(bAnimContext *ac, ID *id, FCurve *fcu, View2D *v2d, View2DGrid *grid, unsigned int pos) { - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; ChannelDriver *driver; float samplefreq; float stime, etime; @@ -965,7 +965,7 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu) /* Draw the 'ghost' F-Curves (i.e. snapshots of the curve) * NOTE: unit mapping has already been applied to the values, so do not try and apply again */ -void graph_draw_ghost_curves(bAnimContext *ac, SpaceIpo *sipo, ARegion *ar) +void graph_draw_ghost_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *ar) { FCurve *fcu; @@ -1013,7 +1013,7 @@ void graph_draw_ghost_curves(bAnimContext *ac, SpaceIpo *sipo, ARegion *ar) /* This is called twice from space_graph.c -> graph_main_region_draw() * Unselected then selected F-Curves are drawn so that they do not occlude each other. */ -void graph_draw_curves(bAnimContext *ac, SpaceIpo *sipo, ARegion *ar, View2DGrid *grid, short sel) +void graph_draw_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *ar, View2DGrid *grid, short sel) { ListBase anim_data = {NULL, NULL}; bAnimListElem *ale; diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index 6c7e73ad57d..8beadadd107 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -332,7 +332,7 @@ void GRAPH_OT_view_frame(wmOperatorType *ot) /* Bake each F-Curve into a set of samples, and store as a ghost curve */ static void create_ghost_curves(bAnimContext *ac, int start, int end) { - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; ListBase anim_data = {NULL, NULL}; bAnimListElem *ale; int filter; @@ -448,12 +448,12 @@ void GRAPH_OT_ghost_curves_create(wmOperatorType *ot) static int graphkeys_clear_ghostcurves_exec(bContext *C, wmOperator *UNUSED(op)) { bAnimContext ac; - SpaceIpo *sipo; + SpaceGraph *sipo; /* get editor data */ if (ANIM_animdata_get_context(C, &ac) == 0) return OPERATOR_CANCELLED; - sipo = (SpaceIpo *)ac.sl; + sipo = (SpaceGraph *)ac.sl; /* if no ghost curves, don't do anything */ if (BLI_listbase_is_empty(&sipo->runtime.ghost_curves)) { @@ -520,7 +520,7 @@ static void insert_graph_keys(bAnimContext *ac, eGraphKeys_InsertKey_Types mode) size_t num_items; ReportList *reports = ac->reports; - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; struct Depsgraph *depsgraph = ac->depsgraph; Scene *scene = ac->scene; ToolSettings *ts = scene->toolsettings; @@ -2030,7 +2030,7 @@ static int graphkeys_framejump_exec(bContext *C, wmOperator *UNUSED(op)) /* set the new current frame and cursor values, based on the average time and value */ if (ked.i1) { - SpaceIpo *sipo = (SpaceIpo *)ac.sl; + SpaceGraph *sipo = (SpaceGraph *)ac.sl; Scene *scene = ac.scene; /* take the average values, rounding to the nearest int as necessary for int results */ @@ -2094,7 +2094,7 @@ static void snap_graph_keys(bAnimContext *ac, short mode) bAnimListElem *ale; int filter; - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; KeyframeEditData ked; KeyframeEditFunc edit_cb; float cursor_value = 0.0f; @@ -2221,7 +2221,7 @@ static void mirror_graph_keys(bAnimContext *ac, short mode) bAnimListElem *ale; int filter; - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; KeyframeEditData ked; KeyframeEditFunc edit_cb; float cursor_value = 0.0f; diff --git a/source/blender/editors/space_graph/graph_intern.h b/source/blender/editors/space_graph/graph_intern.h index fe80df38ace..576a34fead6 100644 --- a/source/blender/editors/space_graph/graph_intern.h +++ b/source/blender/editors/space_graph/graph_intern.h @@ -26,7 +26,7 @@ struct ARegion; struct ARegionType; struct ScrArea; -struct SpaceIpo; +struct SpaceGraph; struct View2DGrid; struct bAnimContext; struct bAnimListElem; @@ -42,8 +42,8 @@ struct ARegion *graph_has_buttons_region(struct ScrArea *sa); /* graph_draw.c */ void graph_draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *ar); -void graph_draw_curves(struct bAnimContext *ac, struct SpaceIpo *sipo, struct ARegion *ar, struct View2DGrid *grid, short sel); -void graph_draw_ghost_curves(struct bAnimContext *ac, struct SpaceIpo *sipo, struct ARegion *ar); +void graph_draw_curves(struct bAnimContext *ac, struct SpaceGraph *sipo, struct ARegion *ar, struct View2DGrid *grid, short sel); +void graph_draw_ghost_curves(struct bAnimContext *ac, struct SpaceGraph *sipo, struct ARegion *ar); /* ***************************************** */ /* graph_select.c */ diff --git a/source/blender/editors/space_graph/graph_ops.c b/source/blender/editors/space_graph/graph_ops.c index 0dc3b086dcc..6ab289982a2 100644 --- a/source/blender/editors/space_graph/graph_ops.c +++ b/source/blender/editors/space_graph/graph_ops.c @@ -75,7 +75,7 @@ static void graphview_cursor_apply(bContext *C, wmOperator *op) { Main *bmain = CTX_data_main(C); Scene *scene = CTX_data_scene(C); - SpaceIpo *sipo = CTX_wm_space_graph(C); + SpaceGraph *sipo = CTX_wm_space_graph(C); /* this isn't technically "frame", but it'll do... */ float frame = RNA_float_get(op->ptr, "frame"); diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c index b765ed4d8bf..6b7e1f10bb3 100644 --- a/source/blender/editors/space_graph/graph_select.c +++ b/source/blender/editors/space_graph/graph_select.c @@ -83,7 +83,7 @@ void deselect_graph_keys(bAnimContext *ac, bool test, short sel, bool do_channel bAnimListElem *ale; int filter; - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; KeyframeEditData ked = {{NULL}}; KeyframeEditFunc test_cb, sel_cb; @@ -235,7 +235,7 @@ static void box_select_graphkeys( bAnimListElem *ale; int filter, mapping_flag; - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; KeyframeEditData ked; KeyframeEditFunc ok_cb, select_cb; View2D *v2d = &ac->ar->v2d; @@ -453,7 +453,7 @@ static int graphkeys_lassoselect_exec(bContext *C, wmOperator *op) selectmode = SELECT_SUBTRACT; { - SpaceIpo *sipo = (SpaceIpo *)ac.sl; + SpaceGraph *sipo = (SpaceGraph *)ac.sl; if (selectmode == SELECT_ADD) { incl_handles = ((sipo->flag & SIPO_SELVHANDLESONLY) || (sipo->flag & SIPO_NOHANDLES)) == 0; @@ -530,7 +530,7 @@ static int graph_circle_select_exec(bContext *C, wmOperator *op) rect_fl.ymax = y + radius; { - SpaceIpo *sipo = (SpaceIpo *)ac.sl; + SpaceGraph *sipo = (SpaceGraph *)ac.sl; if (selectmode == SELECT_ADD) { incl_handles = ((sipo->flag & SIPO_SELVHANDLESONLY) || (sipo->flag & SIPO_NOHANDLES)) == 0; @@ -1113,7 +1113,7 @@ typedef enum eGraphVertIndex { /* check if its ok to select a handle */ // XXX also need to check for int-values only? -static bool fcurve_handle_sel_check(SpaceIpo *sipo, BezTriple *bezt) +static bool fcurve_handle_sel_check(SpaceGraph *sipo, BezTriple *bezt) { if (sipo->flag & SIPO_NOHANDLES) return 0; if ((sipo->flag & SIPO_SELVHANDLESONLY) && BEZT_ISSEL_ANY(bezt) == 0) return 0; @@ -1183,7 +1183,7 @@ static void get_nearest_fcurve_verts_list(bAnimContext *ac, const int mval[2], L bAnimListElem *ale; int filter; - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; View2D *v2d = &ac->ar->v2d; short mapping_flag = 0; @@ -1307,7 +1307,7 @@ static tNearestVertInfo *find_nearest_fcurve_vert(bAnimContext *ac, const int mv /* option 1) select keyframe directly under mouse */ static void mouse_graph_keys(bAnimContext *ac, const int mval[2], short select_mode, short curves_only) { - SpaceIpo *sipo = (SpaceIpo *)ac->sl; + SpaceGraph *sipo = (SpaceGraph *)ac->sl; tNearestVertInfo *nvi; BezTriple *bezt = NULL; diff --git a/source/blender/editors/space_graph/graph_utils.c b/source/blender/editors/space_graph/graph_utils.c index cc66d3d8b00..85f5b8d66cb 100644 --- a/source/blender/editors/space_graph/graph_utils.c +++ b/source/blender/editors/space_graph/graph_utils.c @@ -56,7 +56,7 @@ /* NOTE: Currently called from windowmanager (new drivers editor window) and RNA (mode switching) */ void ED_drivers_editor_init(bContext *C, ScrArea *sa) { - SpaceIpo *sipo = (SpaceIpo *)sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)sa->spacedata.first; /* Set mode */ sipo->mode = SIPO_MODE_DRIVERS; diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index 620e454a8b7..39047a81211 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -92,10 +92,10 @@ ARegion *graph_has_buttons_region(ScrArea *sa) static SpaceLink *graph_new(const ScrArea *UNUSED(sa), const Scene *scene) { ARegion *ar; - SpaceIpo *sipo; + SpaceGraph *sipo; /* Graph Editor - general stuff */ - sipo = MEM_callocN(sizeof(SpaceIpo), "init graphedit"); + sipo = MEM_callocN(sizeof(SpaceGraph), "init graphedit"); sipo->spacetype = SPACE_IPO; sipo->autosnap = SACTSNAP_FRAME; @@ -162,7 +162,7 @@ static SpaceLink *graph_new(const ScrArea *UNUSED(sa), const Scene *scene) /* not spacelink itself */ static void graph_free(SpaceLink *sl) { - SpaceIpo *si = (SpaceIpo *)sl; + SpaceGraph *si = (SpaceGraph *)sl; if (si->ads) { BLI_freelistN(&si->ads->chanbase); @@ -178,7 +178,7 @@ static void graph_free(SpaceLink *sl) /* spacetype; init callback */ static void graph_init(struct wmWindowManager *wm, ScrArea *sa) { - SpaceIpo *sipo = (SpaceIpo *)sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)sa->spacedata.first; /* init dopesheet data if non-existent (i.e. for old files) */ if (sipo->ads == NULL) { @@ -196,10 +196,10 @@ static void graph_init(struct wmWindowManager *wm, ScrArea *sa) static SpaceLink *graph_duplicate(SpaceLink *sl) { - SpaceIpo *sipon = MEM_dupallocN(sl); + SpaceGraph *sipon = MEM_dupallocN(sl); /* clear or remove stuff from old */ - BLI_duplicatelist(&sipon->runtime.ghost_curves, &((SpaceIpo *)sl)->runtime.ghost_curves); + BLI_duplicatelist(&sipon->runtime.ghost_curves, &((SpaceGraph *)sl)->runtime.ghost_curves); sipon->ads = MEM_dupallocN(sipon->ads); return (SpaceLink *)sipon; @@ -222,7 +222,7 @@ static void graph_main_region_init(wmWindowManager *wm, ARegion *ar) static void graph_main_region_draw(const bContext *C, ARegion *ar) { /* draw entirely, view changes should be handled here */ - SpaceIpo *sipo = CTX_wm_space_graph(C); + SpaceGraph *sipo = CTX_wm_space_graph(C); Scene *scene = CTX_data_scene(C); bAnimContext ac; View2D *v2d = &ar->v2d; @@ -565,7 +565,7 @@ static void graph_region_message_subscribe( /* editor level listener */ static void graph_listener(wmWindow *UNUSED(win), ScrArea *sa, wmNotifier *wmn, Scene *UNUSED(scene)) { - SpaceIpo *sipo = (SpaceIpo *)sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)sa->spacedata.first; /* context changes */ switch (wmn->category) { @@ -755,7 +755,7 @@ static void graph_refresh_fcurve_colors(const bContext *C) static void graph_refresh(const bContext *C, ScrArea *sa) { - SpaceIpo *sipo = (SpaceIpo *)sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)sa->spacedata.first; /* updates to data needed depends on Graph Editor mode... */ switch (sipo->mode) { @@ -797,7 +797,7 @@ static void graph_refresh(const bContext *C, ScrArea *sa) static void graph_id_remap(ScrArea *UNUSED(sa), SpaceLink *slink, ID *old_id, ID *new_id) { - SpaceIpo *sgraph = (SpaceIpo *)slink; + SpaceGraph *sgraph = (SpaceGraph *)slink; if (sgraph->ads) { if ((ID *)sgraph->ads->filter_grp == old_id) { @@ -811,13 +811,13 @@ static void graph_id_remap(ScrArea *UNUSED(sa), SpaceLink *slink, ID *old_id, ID static int graph_space_subtype_get(ScrArea *sa) { - SpaceIpo *sgraph = sa->spacedata.first; + SpaceGraph *sgraph = sa->spacedata.first; return sgraph->mode; } static void graph_space_subtype_set(ScrArea *sa, int value) { - SpaceIpo *sgraph = sa->spacedata.first; + SpaceGraph *sgraph = sa->spacedata.first; sgraph->mode = value; } diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 727706f8ffe..bcd6ae8426e 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -600,7 +600,7 @@ static void viewRedrawForce(const bContext *C, TransInfo *t) WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); } else if (t->spacetype == SPACE_IPO) { - //SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first; + //SpaceGraph *sipo = (SpaceGraph *)t->sa->spacedata.first; WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); } else if (t->spacetype == SPACE_NLA) { @@ -8680,7 +8680,7 @@ static short getAnimEdit_SnapMode(TransInfo *t) autosnap = saction->autosnap; } else if (t->spacetype == SPACE_IPO) { - SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)t->sa->spacedata.first; if (sipo) autosnap = sipo->autosnap; diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index cb6535fb51d..26b0a595693 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -4507,7 +4507,7 @@ static void graph_key_shortest_dist(TransInfo *t, FCurve *fcu, TransData *td_sta static void createTransGraphEditData(bContext *C, TransInfo *t) { - SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)t->sa->spacedata.first; Scene *scene = t->scene; ARegion *ar = t->ar; View2D *v2d = &ar->v2d; @@ -4996,7 +4996,7 @@ static void beztmap_to_data(TransInfo *t, FCurve *fcu, BeztMap *bezms, int totve */ void remake_graph_transdata(TransInfo *t, ListBase *anim_data) { - SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)t->sa->spacedata.first; bAnimListElem *ale; const bool use_handle = (sipo->flag & SIPO_NOHANDLES) == 0; @@ -5030,7 +5030,7 @@ void remake_graph_transdata(TransInfo *t, ListBase *anim_data) */ void flushTransGraphData(TransInfo *t) { - SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)t->sa->spacedata.first; TransData *td; TransData2D *td2d; TransDataGraph *tdg; @@ -6706,7 +6706,7 @@ void special_aftertrans_update(bContext *C, TransInfo *t) saction->flag &= ~SACTION_MOVING; } else if (t->spacetype == SPACE_IPO) { - SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)t->sa->spacedata.first; bAnimContext ac; const bool use_handle = (sipo->flag & SIPO_NOHANDLES) == 0; diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 322eb9406c8..20d3245779e 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -397,7 +397,7 @@ static void recalcData_actedit(TransInfo *t) /* helper for recalcData() - for Graph Editor transforms */ static void recalcData_graphedit(TransInfo *t) { - SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)t->sa->spacedata.first; ViewLayer *view_layer = t->view_layer; ListBase anim_data = {NULL, NULL}; @@ -1484,7 +1484,7 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve t->around = V3D_AROUND_CENTER_BOUNDS; } else if (t->spacetype == SPACE_IPO) { - SpaceIpo *sipo = sa->spacedata.first; + SpaceGraph *sipo = sa->spacedata.first; t->view = &ar->v2d; t->around = sipo->around; } @@ -1931,7 +1931,7 @@ void calculateCenterCursor2D(TransInfo *t, float r_center[2]) void calculateCenterCursorGraph2D(TransInfo *t, float r_center[2]) { - SpaceIpo *sipo = (SpaceIpo *)t->sa->spacedata.first; + SpaceGraph *sipo = (SpaceGraph *)t->sa->spacedata.first; Scene *scene = t->scene; /* cursor is combination of current frame, and graph-editor cursor value */ diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index 7ab9d2cfae6..79b2f1a89d6 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -1520,7 +1520,7 @@ static void applyGridIncrement(TransInfo *t, float *val, int max_index, const fl if (t->spacetype == SPACE_IPO) { View2D *v2d = &t->ar->v2d; View2DGrid *grid; - SpaceIpo *sipo = t->sa->spacedata.first; + SpaceGraph *sipo = t->sa->spacedata.first; int unity = V2D_UNIT_VALUES; int unitx = (sipo->flag & SIPO_DRAWTIME) ? V2D_UNIT_SECONDS : V2D_UNIT_FRAMESCALE; |