[Bf-blender-cvs] [b29749af5f0] lanpr-under-gp: LineArt: Fix force line type when connecting to intersection lines,
YimingWu
noreply at git.blender.org
Sun Jul 26 05:34:31 CEST 2020
Commit: b29749af5f00d61dc8c4c21c86267d48faaa040c
Author: YimingWu
Date: Sun Jul 26 11:12:25 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBb29749af5f00d61dc8c4c21c86267d48faaa040c
LineArt: Fix force line type when connecting to intersection lines,
===================================================================
M source/blender/editors/lineart/lineart_chain.c
===================================================================
diff --git a/source/blender/editors/lineart/lineart_chain.c b/source/blender/editors/lineart/lineart_chain.c
index e768529888a..568bee069c8 100644
--- a/source/blender/editors/lineart/lineart_chain.c
+++ b/source/blender/editors/lineart/lineart_chain.c
@@ -626,6 +626,11 @@ static void lineart_chain_connect(LineartRenderBuffer *UNUSED(rb),
onto->type = LRT_EDGE_FLAG_CONTOUR;
}
}
+ else if (sub->type == LRT_EDGE_FLAG_INTERSECTION) {
+ if (onto->type != LRT_EDGE_FLAG_INTERSECTION) {
+ onto->type = LRT_EDGE_FLAG_CONTOUR;
+ }
+ }
if (!reverse_1) { /* L--R L-R */
if (reverse_2) { /* L--R R-L */
BLI_listbase_reverse(&sub->chain);
More information about the Bf-blender-cvs
mailing list