diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-14 16:24:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-14 16:24:25 +0400 |
commit | 4f3de6a74183f01dc6b53e72b982ba895a1d1381 (patch) | |
tree | 48d0d5105ae904111f59b0ef6a6b45b8540f42bf /source/blender/editors/render | |
parent | fca385ca9a6e57fb36ebf9a00d36946e16eabd8e (diff) |
adjust view3d api function for getting user region to also return view3d since most callers need this too.
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r-- | source/blender/editors/render/render_opengl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/render/render_opengl.c b/source/blender/editors/render/render_opengl.c index d26915cc046..06e15f4a5f6 100644 --- a/source/blender/editors/render/render_opengl.c +++ b/source/blender/editors/render/render_opengl.c @@ -327,8 +327,7 @@ static int screen_opengl_render_init(bContext *C, wmOperator *op) oglrender->prevar= prevar; if(is_view_context) { - oglrender->v3d= CTX_wm_view3d(C); - oglrender->ar= ED_view3d_context_region_unlock(C); /* so quad view renders camera */ + ED_view3d_context_user_region(C, &oglrender->v3d, &oglrender->ar); /* so quad view renders camera */ oglrender->rv3d= oglrender->ar->regiondata; /* MUST be cleared on exit */ |