[Bf-blender-cvs] [50ff559544a] lanpr-under-gp: LineArt: Reduce geometry threshold default to 0.01

YimingWu noreply at git.blender.org
Tue Nov 10 03:37:39 CET 2020


Commit: 50ff559544a7fd552e87b5d70bbfa3d303ed7332
Author: YimingWu
Date:   Tue Nov 10 10:37:20 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB50ff559544a7fd552e87b5d70bbfa3d303ed7332

LineArt: Reduce geometry threshold default to 0.01

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

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 12076971e95..9b9998a226c 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -1145,7 +1145,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
         sc->lineart.line_types |= LRT_EDGE_FLAG_ALL_TYPE;
         sc->lineart.flags |= (LRT_ALLOW_DUPLI_OBJECTS | LRT_REMOVE_DOUBLES);
         sc->lineart.angle_splitting_threshold = DEG2RAD(60.0f);
-        sc->lineart.chaining_geometry_threshold = 0.01f;
+        sc->lineart.chaining_geometry_threshold = 0.001f;
         sc->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 42921d29787..182280047d8 100644
--- a/source/blender/makesdna/DNA_scene_defaults.h
+++ b/source/blender/makesdna/DNA_scene_defaults.h
@@ -242,7 +242,7 @@
   { \
     .crease_threshold = DEG2RAD(140.0f),\
     .angle_splitting_threshold = DEG2RAD(60.0f),\
-    .chaining_geometry_threshold = 0.01f,\
+    .chaining_geometry_threshold = 0.001f,\
     .chaining_image_threshold = 0.01f,\
   }
 
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 96a01d74159..5069d82883b 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -7499,8 +7499,8 @@ static void rna_def_scene_lineart(BlenderRNA *brna)
                            "Geometry Threshold",
                            "Segments where their geometric distance between them lower than this "
                            "will be chained together");
-  RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.01f, 3);
-  RNA_def_property_range(prop, 0.0f, 1.0f);
+  RNA_def_property_ui_range(prop, 0.0f, 0.5f, 0.001f, 3);
+  RNA_def_property_range(prop, 0.0f, 0.5f);
   RNA_def_property_update(prop, NC_SCENE, "rna_lineart_update");
 
   prop = RNA_def_property(srna, "chaining_image_threshold", PROP_FLOAT, PROP_DISTANCE);



More information about the Bf-blender-cvs mailing list