diff options
Diffstat (limited to 'source/blender/editors/render/render_view.c')
-rw-r--r-- | source/blender/editors/render/render_view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/render/render_view.c b/source/blender/editors/render/render_view.c index 1103f956f78..9f72ddc179f 100644 --- a/source/blender/editors/render/render_view.c +++ b/source/blender/editors/render/render_view.c @@ -132,7 +132,7 @@ static ScrArea *find_area_image_empty(bContext *C) /********************** open image editor for render *************************/ /* new window uses x,y to set position */ -void render_view_open(bContext *C, int mx, int my) +ScrArea *render_view_open(bContext *C, int mx, int my) { wmWindow *win = CTX_wm_window(C); Scene *scene = CTX_data_scene(C); @@ -141,7 +141,7 @@ void render_view_open(bContext *C, int mx, int my) int area_was_image = 0; if (scene->r.displaymode == R_OUTPUT_NONE) - return; + return NULL; if (scene->r.displaymode == R_OUTPUT_WINDOW) { rcti rect; @@ -226,6 +226,8 @@ void render_view_open(bContext *C, int mx, int my) * full screen to the original tiled setup */ } } + + return sa; } /*************************** cancel render viewer **********************/ |