[Bf-blender-cvs] [33596f237ca] soc-2019-npr: LANPR: Stop splitting chains in CPU mode.

YimingWu noreply at git.blender.org
Tue Jul 16 14:51:50 CEST 2019


Commit: 33596f237ca805dd38d772e008d87515b78a3e17
Author: YimingWu
Date:   Tue Jul 16 20:50:53 2019 +0800
Branches: soc-2019-npr
https://developer.blender.org/rB33596f237ca805dd38d772e008d87515b78a3e17

LANPR: Stop splitting chains in CPU mode.

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

M	source/blender/editors/lanpr/lanpr_ops.c

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

diff --git a/source/blender/editors/lanpr/lanpr_ops.c b/source/blender/editors/lanpr/lanpr_ops.c
index 11a7b0799bb..55e16794f60 100644
--- a/source/blender/editors/lanpr/lanpr_ops.c
+++ b/source/blender/editors/lanpr/lanpr_ops.c
@@ -4067,6 +4067,14 @@ int ED_lanpr_compute_feature_lines_internal(Depsgraph *depsgraph, int intersecto
     float t_geom = rb->scene->lanpr.chaining_geometry_threshold;
 
     ED_lanpr_NO_THREAD_chain_feature_lines(rb);
+
+    if(is_lanpr_engine){
+      /* Enough with it. We can provide an option after we have LANPR internal smoothing */
+      return;
+    }
+    
+    /* Below are simply for better GPencil experience. */
+
     ED_lanpr_split_chains_for_fixed_occlusion(rb);
 
     if (t_image < FLT_EPSILON && t_geom < FLT_EPSILON) {



More information about the Bf-blender-cvs mailing list