[Bf-blender-cvs] [d0d5b2ef5dc] temp-lineart-contained: LineArt: Ortho tolerancec effective for perspective.

YimingWu noreply at git.blender.org
Wed Dec 15 06:01:10 CET 2021


Commit: d0d5b2ef5dce36cfc148d72e79bcb4a26a55115f
Author: YimingWu
Date:   Wed Dec 15 12:59:47 2021 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rBd0d5b2ef5dce36cfc148d72e79bcb4a26a55115f

LineArt: Ortho tolerancec effective for perspective.

In perspective cameras, there will still be certain rare cases where
the camera needs to be rotated ever so slightly, so make that option effective.

===================================================================

M	source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c

===================================================================

diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index e3b187fc3bf..728b1ad1e18 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -3187,7 +3187,7 @@ static LineartRenderBuffer *lineart_create_render_buffer(Scene *scene,
   }
   copy_m4_m4(rb->cam_obmat, camera->obmat);
 
-  if (c->type == CAM_ORTHO && lmd->calculation_flags & LRT_USE_ORTHO_TOLERANCE) {
+  if (lmd->calculation_flags & LRT_USE_ORTHO_TOLERANCE) {
     rotate_m4(rb->cam_obmat, 'X', DEG2RAD(0.1f));
     rotate_m4(rb->cam_obmat, 'Y', DEG2RAD(0.1f));
     rotate_m4(rb->cam_obmat, 'Z', DEG2RAD(0.1f));



More information about the Bf-blender-cvs mailing list