[Bf-blender-cvs] [2ff102e6519] lanpr-under-gp: LineArt: reduce chaining_geometry_threshold to 0.01 to reduce small bleedings in a typical scene.

YimingWu noreply at git.blender.org
Mon Nov 2 09:41:56 CET 2020


Commit: 2ff102e6519dfacfc1ba963f45cf2b9d8fb46b01
Author: YimingWu
Date:   Mon Nov 2 16:40:51 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB2ff102e6519dfacfc1ba963f45cf2b9d8fb46b01

LineArt: reduce chaining_geometry_threshold to 0.01 to reduce small bleedings in a typical scene.

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

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 57f4ffe6d5f..64641075944 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -977,7 +977,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
           scene->lineart.line_types |= LRT_EDGE_FLAG_ALL_TYPE;
           scene->lineart.flags |= (LRT_ALLOW_DUPLI_OBJECTS | LRT_REMOVE_DOUBLES);
           scene->lineart.angle_splitting_threshold = DEG2RAD(60.0f);
-          scene->lineart.chaining_geometry_threshold = 0.1f;
+          scene->lineart.chaining_geometry_threshold = 0.01f;
           scene->lineart.chaining_image_threshold = 0.01f;
         }
       }
diff --git a/source/blender/makesdna/DNA_scene_defaults.h b/source/blender/makesdna/DNA_scene_defaults.h
index c1bf716c6cd..ac902ffbf55 100644
--- a/source/blender/makesdna/DNA_scene_defaults.h
+++ b/source/blender/makesdna/DNA_scene_defaults.h
@@ -242,7 +242,7 @@
   { \
     .crease_threshold = 140.0f,\
     .angle_splitting_threshold = DEG2RAD(60.0f),\
-    .chaining_geometry_threshold = 0.1f,\
+    .chaining_geometry_threshold = 0.01f,\
     .chaining_image_threshold = 0.01f,\
   }
 
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 967a4b05711..055c81e42da 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -7490,7 +7490,7 @@ static void rna_def_scene_lineart(BlenderRNA *brna)
   /* Below these two are only for grease pencil, thus no viewport updates. */
 
   prop = RNA_def_property(srna, "chaining_geometry_threshold", PROP_FLOAT, PROP_NONE);
-  RNA_def_property_float_default(prop, 0.1f);
+  RNA_def_property_float_default(prop, 0.01f);
   RNA_def_property_ui_text(prop,
                            "Geometry Threshold",
                            "Segments where their geometric distance between them lower than this "



More information about the Bf-blender-cvs mailing list