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_script/space_script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_script') diff --git a/source/blender/editors/space_script/space_script.c b/source/blender/editors/space_script/space_script.c index fb8de02d3bd..767db745c33 100644 --- a/source/blender/editors/space_script/space_script.c +++ b/source/blender/editors/space_script/space_script.c @@ -62,7 +62,7 @@ /* ******************** default callbacks for script space ***************** */ -static SpaceLink *script_new(const bContext *UNUSED(C)) +static SpaceLink *script_new(const ScrArea *UNUSED(area), const Scene *UNUSED(scene)) { ARegion *ar; SpaceScript *sscript; -- cgit v1.2.3