diff options
Diffstat (limited to 'source/blender')
-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; + } + } } } } |