[Bf-blender-cvs] [a7bdfd86e99] lanpr-under-gp: LineArt: Angle splitting using deg instead of rad.
YimingWu
noreply at git.blender.org
Wed Jul 29 11:57:07 CEST 2020
Commit: a7bdfd86e99f70476cf4f56ecc5df0611acd2125
Author: YimingWu
Date: Wed Jul 29 17:56:30 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBa7bdfd86e99f70476cf4f56ecc5df0611acd2125
LineArt: Angle splitting using deg instead of rad.
===================================================================
M source/blender/makesrna/intern/rna_scene.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 03ccfeb487f..194c55576af 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -7331,11 +7331,11 @@ static void rna_def_scene_lineart(BlenderRNA *brna)
RNA_def_property_flag(prop, PROP_EDITABLE);
RNA_def_property_update(prop, NC_SCENE, "rna_lineart_update");
- prop = RNA_def_property(srna, "angle_splitting_threshold", PROP_FLOAT, PROP_NONE);
+ prop = RNA_def_property(srna, "angle_splitting_threshold", PROP_FLOAT, PROP_ANGLE);
RNA_def_property_float_default(prop, 0.5f);
RNA_def_property_ui_text(prop, "Angle Splitting", "angle splitting threshold in radian");
/* Don't allow value very close to PI, or we get a lot of small segments.*/
- RNA_def_property_ui_range(prop, 0.0f, M_PI - 0.1, 0.01f, 2);
+ RNA_def_property_ui_range(prop, 0.0f, DEG2RAD(179), 0.01f, 2);
RNA_def_property_flag(prop, PROP_EDITABLE);
RNA_def_property_update(prop, NC_SCENE, "rna_lineart_update");
More information about the Bf-blender-cvs
mailing list