[Bf-blender-cvs] [2c9dc87fc12] temp-lanpr-staging: LANPR: Missed a transpose when apply rotation.
YimingWu
noreply at git.blender.org
Sun Aug 18 10:32:21 CEST 2019
Commit: 2c9dc87fc1216c5f9636f40a54d82c4fdb06c1bb
Author: YimingWu
Date: Sun Aug 18 16:31:54 2019 +0800
Branches: temp-lanpr-staging
https://developer.blender.org/rB2c9dc87fc1216c5f9636f40a54d82c4fdb06c1bb
LANPR: Missed a transpose when apply rotation.
===================================================================
M source/blender/editors/lanpr/lanpr_cpu.c
===================================================================
diff --git a/source/blender/editors/lanpr/lanpr_cpu.c b/source/blender/editors/lanpr/lanpr_cpu.c
index 6c08bfce4e9..998374eee4c 100644
--- a/source/blender/editors/lanpr/lanpr_cpu.c
+++ b/source/blender/editors/lanpr/lanpr_cpu.c
@@ -2454,6 +2454,7 @@ static void lanpr_compute_view_Vector(LANPR_RenderBuffer *rb)
float inv[4][4];
invert_m4_m4(inv, rb->scene->camera->obmat);
+ transpose_m4(inv);
mul_v3_mat3_m4v3(trans, inv, direction);
copy_v3db_v3fl(rb->view_vector, trans);
}
More information about the Bf-blender-cvs
mailing list