[Bf-blender-cvs] [2d32dd06324] soc-2020-greasepencil-curve: GPencil: Fix error threshold not showing in panel
Falk David
noreply at git.blender.org
Fri Jun 19 20:48:12 CEST 2020
Commit: 2d32dd06324040c2c47712fc1c3b202d972a0fe7
Author: Falk David
Date: Fri Jun 19 20:43:01 2020 +0200
Branches: soc-2020-greasepencil-curve
https://developer.blender.org/rB2d32dd06324040c2c47712fc1c3b202d972a0fe7
GPencil: Fix error threshold not showing in panel
===================================================================
M source/blender/editors/gpencil/gpencil_select.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index 6accc06d175..dd04664f5b6 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -151,9 +151,9 @@ static void gpencil_select_ui(bContext *C, wmOperator *op)
Object *ob = CTX_data_active_object(C);
bGPdata *gpd = ob->data;
- if (GPENCIL_CURVE_EDIT_SESSIONS_ON(gpd) && error_threshold_display_poll(C)) {
+ if (GPENCIL_CURVE_EDIT_SESSIONS_ON(gpd)) { // && error_threshold_display_poll(C)) {
RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr);
- uiItemR(layout, &ptr, "error_threshold", 0, NULL, ICON_NONE);
+ uiItemR(layout, &ptr, "error_threshold", 0, "Error Threshold", ICON_NONE);
}
}
@@ -1822,7 +1822,7 @@ static int gpencil_select_exec(bContext *C, wmOperator *op)
/* Perform selection operations... */
if (whole) {
/* select all curve points */
- if (hit_curve != NULL || (is_curve_edit && hit_point != NULL)) {
+ if (hit_curve != NULL) {
for (int i = 0; i < hit_curve->tot_curve_points; i++) {
bGPDcurve_point *gpc_pt = &hit_curve->curve_points[i];
BezTriple *bezt = &gpc_pt->bezt;
More information about the Bf-blender-cvs
mailing list