Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2021-03-20 08:35:13 +0300
committerSebastian Parborg <darkdefende@gmail.com>2021-03-20 14:36:27 +0300
commit3d5239ff40e7dc072d8e9c93fdb53817586c9935 (patch)
treecfdbf63265fb90c41b9970f59bb6ee73ae5509e6 /source/blender/gpencil_modifiers
parentd5a705873e11510950b899caebd43ba47d69ccfa (diff)
Fix T86730: LineArt: keep contour when there's perpendicular faces.
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r--source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index 7d79ce46c1a..2587b3cd8ea 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -1400,7 +1400,7 @@ static char lineart_identify_feature_line(LineartRenderBuffer *rb,
dot_1 = dot_v3v3_db(view_vector, rt1->gn);
dot_2 = dot_v3v3_db(view_vector, rt2->gn);
- if ((result = dot_1 * dot_2) < 0 && (dot_1 + dot_2)) {
+ if ((result = dot_1 * dot_2) <= 0 && (dot_1 + dot_2)) {
return LRT_EDGE_FLAG_CONTOUR;
}