[Bf-blender-cvs] [351cf10bf2f] lanpr-under-gp: LineArt: reduce chaining_image_threshold to 0.001 to prevent errorous chaining.

YimingWu noreply at git.blender.org
Tue Nov 10 03:49:08 CET 2020


Commit: 351cf10bf2f1f409fb77d98ca879d61085b352d8
Author: YimingWu
Date:   Tue Nov 10 10:47:41 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB351cf10bf2f1f409fb77d98ca879d61085b352d8

LineArt: reduce chaining_image_threshold to 0.001 to prevent errorous chaining.

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

M	source/blender/blenloader/intern/versioning_290.c
M	source/blender/makesdna/DNA_scene_defaults.h
M	source/blender/makesrna/intern/rna_scene.c

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

diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c
index 9b9998a226c..1d0a0e67e25 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -1146,7 +1146,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
         sc->lineart.flags |= (LRT_ALLOW_DUPLI_OBJECTS | LRT_REMOVE_DOUBLES);
         sc->lineart.angle_splitting_threshold = DEG2RAD(60.0f);
         sc->lineart.chaining_geometry_threshold = 0.001f;
-        sc->lineart.chaining_image_threshold = 0.01f;
+        sc->lineart.chaining_image_threshold = 0.001f;
       }
     }
   }
diff --git a/source/blender/makesdna/DNA_scene_defaults.h b/source/blender/makesdna/DNA_scene_defaults.h
index 182280047d8..2b1a4bbfcce 100644
--- a/source/blender/makesdna/DNA_scene_defaults.h
+++ b/source/blender/makesdna/DNA_scene_defaults.h
@@ -243,7 +243,7 @@
     .crease_threshold = DEG2RAD(140.0f),\
     .angle_splitting_threshold = DEG2RAD(60.0f),\
     .chaining_geometry_threshold = 0.001f,\
-    .chaining_image_threshold = 0.01f,\
+    .chaining_image_threshold = 0.001f,\
   }
 
 
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 5069d82883b..3a48cacb51c 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -7510,7 +7510,7 @@ static void rna_def_scene_lineart(BlenderRNA *brna)
       "Image Threshold",
       "Segments with an image distance smaller than this will be chained together");
   RNA_def_property_ui_range(prop, 0.0f, 0.3f, 0.001f, 4);
-  RNA_def_property_range(prop, 0.0f, 1.0f);
+  RNA_def_property_range(prop, 0.0f, 0.3f);
   RNA_def_property_update(prop, NC_SCENE, "rna_lineart_update");
 
   prop = RNA_def_property(srna, "baking_final_range", PROP_BOOLEAN, PROP_NONE);



More information about the Bf-blender-cvs mailing list