[Bf-blender-cvs] [24ab978a67e] lanpr-under-gp: LineArt: Vertical camera FOV improper scale.
YimingWu
noreply at git.blender.org
Tue Sep 22 14:37:53 CEST 2020
Commit: 24ab978a67ee281949f52f31e0b30481f041d532
Author: YimingWu
Date: Tue Sep 22 20:30:21 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB24ab978a67ee281949f52f31e0b30481f041d532
LineArt: Vertical camera FOV improper scale.
===================================================================
M source/blender/editors/lineart/lineart_cpu.c
===================================================================
diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index 8c07b3e289f..c453549428f 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -1761,6 +1761,9 @@ static void lineart_main_load_geometries(Depsgraph *depsgraph,
double asp = ((double)rb->w / (double)rb->h);
if (cam->type == CAM_PERSP) {
+ if (asp < 1) {
+ fov /= asp;
+ }
lineart_matrix_perspective_44d(proj, fov, asp, cam->clip_start, cam->clip_end);
}
else if (cam->type == CAM_ORTHO) {
More information about the Bf-blender-cvs
mailing list