[Bf-blender-cvs] [fec90a5d589] blender-v3.3-release: GPencil: Fix sharp_threshold property in sample stroke operator
YimingWu
noreply at git.blender.org
Wed Aug 31 04:02:22 CEST 2022
Commit: fec90a5d589e334ad4c11f3756dcd8ffd1f94666
Author: YimingWu
Date: Wed Aug 31 10:00:35 2022 +0800
Branches: blender-v3.3-release
https://developer.blender.org/rBfec90a5d589e334ad4c11f3756dcd8ffd1f94666
GPencil: Fix sharp_threshold property in sample stroke operator
The property registration was missing in the operator, now fixed.
===================================================================
M source/blender/editors/gpencil/gpencil_edit.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index c05ab8c6b28..e6ab6d061ea 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -4483,6 +4483,7 @@ void GPENCIL_OT_stroke_sample(wmOperatorType *ot)
/* properties */
prop = RNA_def_float(ot->srna, "length", 0.1f, 0.0f, 100.0f, "Length", "", 0.0f, 100.0f);
+ prop = RNA_def_float(ot->srna, "sharp_threshold", 0.1f, 0.0f, M_PI, "Sharp Threshold", "", 0.0f, M_PI);
/* avoid re-using last var */
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
More information about the Bf-blender-cvs
mailing list