[Bf-blender-cvs] [173d6901496] lanpr-under-gp: LineArt: Optimize details in chaining code.
YimingWu
noreply at git.blender.org
Wed Jul 22 13:56:48 CEST 2020
Commit: 173d69014965060fb54fecc3113c66d370c869e3
Author: YimingWu
Date: Wed Jul 22 19:53:14 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB173d69014965060fb54fecc3113c66d370c869e3
LineArt: Optimize details in chaining code.
===================================================================
M source/blender/editors/lineart/lineart_chain.c
M source/blender/makesrna/intern/rna_scene.c
===================================================================
diff --git a/source/blender/editors/lineart/lineart_chain.c b/source/blender/editors/lineart/lineart_chain.c
index 166cf4d6bed..ae251190c70 100644
--- a/source/blender/editors/lineart/lineart_chain.c
+++ b/source/blender/editors/lineart/lineart_chain.c
@@ -679,10 +679,10 @@ void ED_lineart_chain_connect(LineartRenderBuffer *rb, const int do_geometry_spa
while ((rlc = BLI_pophead(&swap)) != NULL) {
rlc->next = rlc->prev = NULL;
- BLI_addtail(&rb->chains, rlc);
if (rlc->picked) {
continue;
}
+ BLI_addtail(&rb->chains, rlc);
rlc->picked = 1;
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index f8b7f8d3700..fc41684345e 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -7346,7 +7346,7 @@ static void rna_def_scene_lineart(BlenderRNA *brna)
"Image Threshold",
"Segments where their image distance between them lower 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, 0.3f);
+ RNA_def_property_range(prop, 0.0f, 1.0f);
RNA_def_property_update(prop, NC_SCENE, "rna_lineart_update");
}
More information about the Bf-blender-cvs
mailing list