[Bf-blender-cvs] [3d33971422f] lanpr-under-gp: LineArt: Don't call angle splitting when threshold is minimal.
YimingWu
noreply at git.blender.org
Wed Jul 29 16:51:21 CEST 2020
Commit: 3d33971422f495a3c7b9ed2a85e7e639b0bbf76c
Author: YimingWu
Date: Wed Jul 29 22:50:33 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB3d33971422f495a3c7b9ed2a85e7e639b0bbf76c
LineArt: Don't call angle splitting when threshold is minimal.
===================================================================
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 d47e094e0fb..1234a1aef81 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -3504,7 +3504,9 @@ int ED_lineart_compute_feature_lines_internal(Depsgraph *depsgraph, const int sh
/* This configuration ensures there won't be accidental lost of short segments */
ED_lineart_chain_discard_short(rb, MIN3(t_image, t_geom, 0.01f) - FLT_EPSILON);
- ED_lineart_chain_split_angle(rb, rb->angle_splitting_threshold);
+ if (rb->angle_splitting_threshold > 0.0001) {
+ ED_lineart_chain_split_angle(rb, rb->angle_splitting_threshold);
+ }
}
// Set after GP done.
// ED_lineart_calculation_flag_set(LRT_RENDER_FINISHED);
More information about the Bf-blender-cvs
mailing list