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.
This commit is contained in:
Brecht Van Lommel 2013-05-27 17:21:20 +00:00
parent 722680d7cf
commit 833ca58260

@ -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;
}
}
}
}
}