Page MenuHome
Paste P436

Masterwork From Distant Lands
ActivePublic

Authored by Dalai Felinto (dfelinto) on Jan 18 2017, 6:20 PM.
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 27013277ed4..d23e1b0cb4d 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -3649,11 +3649,7 @@ static void view3d_hmd_view_get_matrices(
/* apply modelview matrix from 3D View onto hmd device one */
mul_m4_m4m4(r_modelviewmat, r_modelviewmat, rv3d->viewmat);
- if (rv3d->persp == RV3D_CAMOB) {
- /* projection matrix contains camera zoom and camera view offset, needs to be applied */
- add_m4_m4m4(r_projectionmat, r_projectionmat, rv3d->winmat);
- }
- else {
+ if (rv3d->persp != RV3D_CAMOB) {
/* apply modelview zoom */
r_modelviewmat[3][2] -= rv3d->dist;
}

Event Timeline

Dalai Felinto (dfelinto) changed the title of this paste from untitled to Masterwork From Distant Lands.