diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-27 21:21:20 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-27 21:21:20 +0400 |
commit | 833ca58260ec024abde2d43ba39184f74e66e86b (patch) | |
tree | 37103b31c5daad4217a5d20f3381d469b073e359 /source/blender/editors | |
parent | 722680d7cffd4f7ffe40799d3b1b1c5f3c2a4928 (diff) |
Fix #35506: enter local view, enable render draw mode, exit local view. In this
case the render engine would keep working invisible in the background.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index 15641f35b35..a3421295464 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -64,6 +64,8 @@ #include "ED_screen.h" #include "ED_armature.h" +#include "RE_engine.h" + #ifdef WITH_GAMEENGINE #include "BL_System.h" #endif @@ -1216,6 +1218,13 @@ static void restore_localviewdata(ScrArea *sa, int free) rv3d->localvd = NULL; } } + + if (v3d->drawtype != OB_RENDER) { + if (rv3d->render_engine) { + RE_engine_free(rv3d->render_engine); + rv3d->render_engine = NULL; + } + } } } } |