Fix #36235: cycles crash deactivating render layer during rendering.

This commit is contained in:
Brecht Van Lommel 2013-07-29 15:32:24 +00:00
parent b517291fe6
commit 6135a7adc8

@ -279,6 +279,11 @@ void BlenderSession::do_write_update_render_tile(RenderTile& rtile, bool do_upda
BL::RenderResult::layers_iterator b_single_rlay;
b_rr.layers.begin(b_single_rlay);
/* layer will be missing if it was disabled in the UI */
if(b_single_rlay == b_rr.layers.end())
return;
BL::RenderLayer b_rlay = *b_single_rlay;
if (do_update_only) {