diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-16 08:42:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-16 08:42:11 +0300 |
commit | 2d1c14f0360a2a8172c7bdb64f6dbe99197f5c3e (patch) | |
tree | f051b0b13013ada82caf581779f7aa7de43ea49c /source/blender/editors/space_graph | |
parent | 9d09eda0a31027c83430718e5caed3797da51b51 (diff) |
Cleanup: rename SPACE_IPO -> SPACE_GRAPH
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r-- | source/blender/editors/space_graph/graph_edit.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_graph/graph_ops.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_graph/graph_utils.c | 8 | ||||
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 14 |
4 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index 8beadadd107..65adc18dcb0 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -2815,7 +2815,7 @@ static bool graph_driver_delete_invalid_poll(bContext *C) ScrArea *sa = CTX_wm_area(C); /* firstly, check if in Graph Editor */ - if ((sa == NULL) || (sa->spacetype != SPACE_IPO)) + if ((sa == NULL) || (sa->spacetype != SPACE_GRAPH)) return 0; /* try to init Anim-Context stuff ourselves and check */ diff --git a/source/blender/editors/space_graph/graph_ops.c b/source/blender/editors/space_graph/graph_ops.c index 6ab289982a2..e37925c93dc 100644 --- a/source/blender/editors/space_graph/graph_ops.c +++ b/source/blender/editors/space_graph/graph_ops.c @@ -488,7 +488,7 @@ void ED_operatormacros_graph(void) void graphedit_keymap(wmKeyConfig *keyconf) { /* keymap for all regions */ - WM_keymap_ensure(keyconf, "Graph Editor Generic", SPACE_IPO, 0); + WM_keymap_ensure(keyconf, "Graph Editor Generic", SPACE_GRAPH, 0); /* channels */ /* Channels are not directly handled by the Graph Editor module, but are inherited from the Animation module. @@ -497,5 +497,5 @@ void graphedit_keymap(wmKeyConfig *keyconf) */ /* keyframes */ - WM_keymap_ensure(keyconf, "Graph Editor", SPACE_IPO, 0); + WM_keymap_ensure(keyconf, "Graph Editor", SPACE_GRAPH, 0); } diff --git a/source/blender/editors/space_graph/graph_utils.c b/source/blender/editors/space_graph/graph_utils.c index 85f5b8d66cb..e1fef901677 100644 --- a/source/blender/editors/space_graph/graph_utils.c +++ b/source/blender/editors/space_graph/graph_utils.c @@ -139,7 +139,7 @@ bool graphop_visible_keyframes_poll(bContext *C) /* firstly, check if in Graph Editor */ // TODO: also check for region? - if ((sa == NULL) || (sa->spacetype != SPACE_IPO)) + if ((sa == NULL) || (sa->spacetype != SPACE_GRAPH)) return 0; /* try to init Anim-Context stuff ourselves and check */ @@ -188,7 +188,7 @@ bool graphop_editable_keyframes_poll(bContext *C) /* firstly, check if in Graph Editor */ // TODO: also check for region? - if ((sa == NULL) || (sa->spacetype != SPACE_IPO)) + if ((sa == NULL) || (sa->spacetype != SPACE_GRAPH)) return 0; /* try to init Anim-Context stuff ourselves and check */ @@ -235,7 +235,7 @@ bool graphop_active_fcurve_poll(bContext *C) /* firstly, check if in Graph Editor */ // TODO: also check for region? - if ((sa == NULL) || (sa->spacetype != SPACE_IPO)) + if ((sa == NULL) || (sa->spacetype != SPACE_GRAPH)) return 0; /* try to init Anim-Context stuff ourselves and check */ @@ -276,7 +276,7 @@ bool graphop_selected_fcurve_poll(bContext *C) /* firstly, check if in Graph Editor */ // TODO: also check for region? - if ((sa == NULL) || (sa->spacetype != SPACE_IPO)) + if ((sa == NULL) || (sa->spacetype != SPACE_GRAPH)) return 0; /* try to init Anim-Context stuff ourselves and check */ diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index 39047a81211..001dd524a3e 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -96,7 +96,7 @@ static SpaceLink *graph_new(const ScrArea *UNUSED(sa), const Scene *scene) /* Graph Editor - general stuff */ sipo = MEM_callocN(sizeof(SpaceGraph), "init graphedit"); - sipo->spacetype = SPACE_IPO; + sipo->spacetype = SPACE_GRAPH; sipo->autosnap = SACTSNAP_FRAME; @@ -213,9 +213,9 @@ static void graph_main_region_init(wmWindowManager *wm, ARegion *ar) UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_CUSTOM, ar->winx, ar->winy); /* own keymap */ - keymap = WM_keymap_ensure(wm->defaultconf, "Graph Editor", SPACE_IPO, 0); + keymap = WM_keymap_ensure(wm->defaultconf, "Graph Editor", SPACE_GRAPH, 0); WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct); - keymap = WM_keymap_ensure(wm->defaultconf, "Graph Editor Generic", SPACE_IPO, 0); + keymap = WM_keymap_ensure(wm->defaultconf, "Graph Editor Generic", SPACE_GRAPH, 0); WM_event_add_keymap_handler(&ar->handlers, keymap); } @@ -365,7 +365,7 @@ static void graph_channel_region_init(wmWindowManager *wm, ARegion *ar) /* own keymap */ keymap = WM_keymap_ensure(wm->defaultconf, "Animation Channels", 0, 0); WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct); - keymap = WM_keymap_ensure(wm->defaultconf, "Graph Editor Generic", SPACE_IPO, 0); + keymap = WM_keymap_ensure(wm->defaultconf, "Graph Editor Generic", SPACE_GRAPH, 0); WM_event_add_keymap_handler(&ar->handlers, keymap); } @@ -415,7 +415,7 @@ static void graph_buttons_region_init(wmWindowManager *wm, ARegion *ar) ED_region_panels_init(wm, ar); - keymap = WM_keymap_ensure(wm->defaultconf, "Graph Editor Generic", SPACE_IPO, 0); + keymap = WM_keymap_ensure(wm->defaultconf, "Graph Editor Generic", SPACE_GRAPH, 0); WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct); } @@ -646,7 +646,7 @@ static void graph_refresh_fcurve_colors(const bContext *C) if (ANIM_animdata_get_context(C, &ac) == false) return; - UI_SetTheme(SPACE_IPO, RGN_TYPE_WINDOW); + UI_SetTheme(SPACE_GRAPH, RGN_TYPE_WINDOW); /* build list of F-Curves which will be visible as channels in channel-region * - we don't include ANIMFILTER_CURVEVISIBLE filter, as that will result in a @@ -833,7 +833,7 @@ void ED_spacetype_ipo(void) SpaceType *st = MEM_callocN(sizeof(SpaceType), "spacetype ipo"); ARegionType *art; - st->spaceid = SPACE_IPO; + st->spaceid = SPACE_GRAPH; strncpy(st->name, "Graph", BKE_ST_MAXNAME); st->new = graph_new; |