From 9a35ad752e845129aa756778e7f502a5057b92bf Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Sat, 21 Apr 2018 19:30:56 +0200 Subject: Cleanup: Get rid of context in editor 'new' callback Requiring context means we can't easily create new editors to replace deprecated ones in versioning code. Think it's reasonable to give editors access to scene and area data for their initial setup though. They mostly need it for setting "the view", as in, scrolling values. Also did minor cleanup in top-bar creation function. --- source/blender/editors/space_api/spacetypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_api') diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c index 6c53aa62378..12f16f1fe42 100644 --- a/source/blender/editors/space_api/spacetypes.c +++ b/source/blender/editors/space_api/spacetypes.c @@ -280,7 +280,7 @@ void ED_region_draw_cb_draw(const bContext *C, ARegion *ar, int type) void ED_spacetype_xxx(void); /* allocate and init some vars */ -static SpaceLink *xxx_new(const bContext *UNUSED(C)) +static SpaceLink *xxx_new(const ScrArea *UNUSED(sa), const Scene *UNUSED(scene)) { return NULL; } -- cgit v1.2.3