Fix #34041: rendered view + border

Issue was caused by rare cases when camera move happens just after
last sample was finished, this would lead to missing delay reset
because render cycle will go to pause_cond.wait(). No reset will
happen at this point because of some kind of optimization which
checks whether camera is tagged for update and wouldn't do reset
in this case.

Talked to Brecht and seems this optimization is not actually needed
and removing it will solve issue with frozen preview.
This commit is contained in:
Sergey Sharybin
2013-02-05 14:16:19 +00:00
parent 1ca0d66bd2
commit fa671fd0d5

View File

@@ -493,11 +493,10 @@ bool BlenderSession::draw(int w, int h)
} }
else { else {
/* update camera from 3d view */ /* update camera from 3d view */
bool need_update = scene->camera->need_update;
sync->sync_view(b_v3d, b_rv3d, w, h); sync->sync_view(b_v3d, b_rv3d, w, h);
if(scene->camera->need_update && !need_update) if(scene->camera->need_update)
reset = true; reset = true;
session->scene->mutex.unlock(); session->scene->mutex.unlock();