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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-11-19 14:05:03 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-02-04 23:14:05 +0300
commit559d01e12949a730f3497fdfbe79a11f532f3afe (patch)
tree854612ac452c7975c4273b35d302fb74fbf47c34 /source/blender/editors/curve
parent0bedf9cf07c66f4f6ddbdcfb47001bb29cb2389e (diff)
Improve error message converting nurb to bezier
BKE_nurb_type_convert now takes r_err_msg and is more specific in the error message... ref T71672. Maniphest Tasks: T71672 Differential Revision: https://developer.blender.org/D6275
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r--source/blender/editors/curve/editcurve.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index e7803fdaafb..f5920bfb258 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -4002,14 +4002,15 @@ static int set_spline_type_exec(bContext *C, wmOperator *op)
for (nu = editnurb->first; nu; nu = nu->next) {
if (ED_curve_nurb_select_check(v3d, nu)) {
const int pntsu_prev = nu->pntsu;
- if (BKE_nurb_type_convert(nu, type, use_handles)) {
+ const char *err_msg = NULL;
+ if (BKE_nurb_type_convert(nu, type, use_handles, &err_msg)) {
changed = true;
if (pntsu_prev != nu->pntsu) {
changed_size = true;
}
}
else {
- BKE_report(op->reports, RPT_ERROR, "No conversion possible");
+ BKE_report(op->reports, RPT_ERROR, err_msg);
}
}
}