Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2022-08-31 05:00:35 +0300
committerYimingWu <xp8110@outlook.com>2022-08-31 05:02:09 +0300
commitfec90a5d589e334ad4c11f3756dcd8ffd1f94666 (patch)
tree673a87f4828504f7bc0f74e73ddbcf399816df9c
parent66fecfcda6f5e0dacf3d86091e08292e8624c895 (diff)
GPencil: Fix sharp_threshold property in sample stroke operator
The property registration was missing in the operator, now fixed.
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c1
1 files changed, 1 insertions, 0 deletions
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);
}