Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/curve/editcurve.c
| Context not available. | |||||
| { | { | ||||
| const float error_sq_max = FLT_MAX; | const float error_sq_max = FLT_MAX; | ||||
| float ratio = RNA_float_get(op->ptr, "ratio"); | float ratio = RNA_float_get(op->ptr, "ratio"); | ||||
| bool all_supported_report = false; | |||||
| ViewLayer *view_layer = CTX_data_view_layer(C); | ViewLayer *view_layer = CTX_data_view_layer(C); | ||||
| uint objects_len = 0; | uint objects_len = 0; | ||||
| Context not available. | |||||
| } | } | ||||
| if (all_supported == false) { | if (all_supported == false) { | ||||
| BKE_report(op->reports, RPT_WARNING, "Only bezier curves are supported"); | all_supported_report = true; | ||||
| } | } | ||||
| if (changed) { | if (changed) { | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| if (all_supported_report) { | |||||
| BKE_report(op->reports, RPT_WARNING, "Only bezier curves are supported"); | |||||
| } | |||||
| MEM_freeN(objects); | MEM_freeN(objects); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| Context not available. | |||||