diff options
Diffstat (limited to 'source/blender/editors/space_ipo')
-rw-r--r-- | source/blender/editors/space_ipo/ipo_header.c | 8 | ||||
-rw-r--r-- | source/blender/editors/space_ipo/space_ipo.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/space_ipo/ipo_header.c b/source/blender/editors/space_ipo/ipo_header.c index 61f7b80f703..bf088cb700e 100644 --- a/source/blender/editors/space_ipo/ipo_header.c +++ b/source/blender/editors/space_ipo/ipo_header.c @@ -38,7 +38,7 @@ #include "BLI_blenlib.h" -#include "BKE_global.h" +#include "BKE_context.h" #include "BKE_screen.h" #include "ED_screen.h" @@ -66,7 +66,7 @@ static void do_viewmenu(bContext *C, void *arg, int event) static uiBlock *dummy_viewmenu(bContext *C, uiMenuBlockHandle *handle, void *arg_unused) { - ScrArea *curarea= C->area; + ScrArea *curarea= CTX_wm_area(C); uiBlock *block; short yco= 0, menuwidth=120; @@ -99,7 +99,7 @@ static void do_ipo_buttons(bContext *C, void *arg, int event) void ipo_header_buttons(const bContext *C, ARegion *ar) { - ScrArea *sa= C->area; + ScrArea *sa= CTX_wm_area(C); uiBlock *block; int xco, yco= 3; @@ -115,7 +115,7 @@ void ipo_header_buttons(const bContext *C, ARegion *ar) uiBlockSetEmboss(block, UI_EMBOSSP); xmax= GetButStringLength("View"); - uiDefPulldownBut(block, dummy_viewmenu, C->area, + uiDefPulldownBut(block, dummy_viewmenu, CTX_wm_area(C), "View", xco, yco-2, xmax-3, 24, ""); } diff --git a/source/blender/editors/space_ipo/space_ipo.c b/source/blender/editors/space_ipo/space_ipo.c index 325d14120ae..1c1c5997ee7 100644 --- a/source/blender/editors/space_ipo/space_ipo.c +++ b/source/blender/editors/space_ipo/space_ipo.c @@ -41,7 +41,7 @@ #include "BLI_arithb.h" #include "BLI_rand.h" -#include "BKE_global.h" +#include "BKE_context.h" #include "BKE_screen.h" #include "ED_space_api.h" @@ -149,7 +149,7 @@ static SpaceLink *ipo_duplicate(SpaceLink *sl) // XXX this should be defined in some general lib for anim editors... static void draw_cfra(const bContext *C, SpaceIpo *sipo, View2D *v2d) { - Scene *scene= C->scene; + Scene *scene= CTX_data_scene(C); float vec[2]; //vec[0] = get_ipo_cfra_from_cfra(sipo, scene->r.cfra); @@ -168,7 +168,7 @@ static void draw_cfra(const bContext *C, SpaceIpo *sipo, View2D *v2d) #if 0 if(sipo->blocktype==ID_OB) { - ob= (G.scene->basact) ? (G.scene->basact->object) : 0; + ob= (scene->basact) ? (scene->basact->object) : 0; if (ob && (ob->ipoflag & OB_OFFS_OB) && (give_timeoffset(ob)!=0.0)) { vec[0]-= give_timeoffset(ob); @@ -204,7 +204,7 @@ static void ipo_main_area_init(wmWindowManager *wm, ARegion *ar) static void ipo_main_area_draw(const bContext *C, ARegion *ar) { /* draw entirely, view changes should be handled here */ - SpaceIpo *sipo= C->area->spacedata.first; + SpaceIpo *sipo= (SpaceIpo*)CTX_wm_space_data(C); View2D *v2d= &ar->v2d; View2DGrid *grid; View2DScrollers *scrollers; |