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:
@@ -493,11 +493,10 @@ bool BlenderSession::draw(int w, int h)
|
||||
}
|
||||
else {
|
||||
/* update camera from 3d view */
|
||||
bool need_update = scene->camera->need_update;
|
||||
|
||||
sync->sync_view(b_v3d, b_rv3d, w, h);
|
||||
|
||||
if(scene->camera->need_update && !need_update)
|
||||
if(scene->camera->need_update)
|
||||
reset = true;
|
||||
|
||||
session->scene->mutex.unlock();
|
||||
|
Reference in New Issue
Block a user