Fix T41060: Wrong texture 'Object' mapping in 3DView Rendered mode with Blender Internal

This commit is contained in:
Sergey Sharybin 2014-08-13 00:32:04 +06:00
parent 4bd252d8c3
commit e9ef7a8358
Notes: blender-bot 2023-02-14 10:21:10 +01:00
Referenced by issue #41060, Wrong texture 'Object' mapping in 3DView Rendered mode with Blender Internal - Update issue?
1 changed files with 10 additions and 0 deletions

View File

@ -1192,7 +1192,17 @@ static void render_view3d_startjob(void *customdata, short *stop, short *do_upda
rstats = RE_GetStats(re);
if (update_flag & PR_UPDATE_VIEW) {
Object *object;
rp->resolution_divider = rp->start_resolution_divider;
/* Same as database_init_objects(), loop over all objects.
* We might consider de-duplicating the code between this two cases.
*/
for (object = rp->bmain->object.first; object; object = object->id.next) {
float mat[4][4];
mul_m4_m4m4(mat, rp->viewmat, object->obmat);
invert_m4_m4(object->imat_ren, mat);
}
}
use_border = render_view3d_disprect(rp->scene, rp->ar, rp->v3d,