[Bf-blender-cvs] [ce55b10522c] lanpr-under-gp: LineArt: Vector 2D intersection typo fix.

YimingWu noreply at git.blender.org
Tue Sep 22 14:37:53 CEST 2020


Commit: ce55b10522c5e2a418198b8a24beed70706e1069
Author: YimingWu
Date:   Tue Sep 22 20:37:10 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBce55b10522c5e2a418198b8a24beed70706e1069

LineArt: Vector 2D intersection typo fix.

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

M	source/blender/editors/include/ED_lineart.h

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

diff --git a/source/blender/editors/include/ED_lineart.h b/source/blender/editors/include/ED_lineart.h
index 17068439a83..3b36f6391ea 100644
--- a/source/blender/editors/include/ED_lineart.h
+++ b/source/blender/editors/include/ED_lineart.h
@@ -467,7 +467,7 @@ BLI_INLINE int lineart_LineIntersectTest2d(
 
     if (fabs(a2[0] - a1[0]) > fabs(a2[1] - a1[1])) {
       *aRatio = ratiod(a1[0], a2[0], rx);
-      rr = ratiod(b1[0], b2[0], rx);
+      rr = ratiod(b1[1], b2[1], ry);
       if ((*aRatio) > 0 && (*aRatio) < 1 && rr > 0 && rr < 1) {
         return 1;
       }



More information about the Bf-blender-cvs mailing list