Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/graph_slider_ops.c
| Show First 20 Lines • Show All 499 Lines • ▼ Show 20 Lines | void GRAPH_OT_decimate(wmOperatorType *ot) | ||||
| /* Properties */ | /* Properties */ | ||||
| RNA_def_enum(ot->srna, | RNA_def_enum(ot->srna, | ||||
| "mode", | "mode", | ||||
| decimate_mode_items, | decimate_mode_items, | ||||
| DECIM_RATIO, | DECIM_RATIO, | ||||
| "Mode", | "Mode", | ||||
| "Which mode to use for decimation"); | "Which mode to use for decimation"); | ||||
| RNA_def_float_percentage(ot->srna, | RNA_def_float_factor(ot->srna, | ||||
| "remove_ratio", | "remove_ratio", | ||||
| 1.0f / 3.0f, | 1.0f / 3.0f, | ||||
| 0.0f, | 0.0f, | ||||
| 1.0f, | 1.0f, | ||||
| "Remove", | "Remove", | ||||
| "The percentage of keyframes to remove", | "The ratio of remaining keyframes after the operation", | ||||
| 0.0f, | 0.0f, | ||||
| 1.0f); | 1.0f); | ||||
| RNA_def_float(ot->srna, | RNA_def_float(ot->srna, | ||||
| "remove_error_margin", | "remove_error_margin", | ||||
| 0.0f, | 0.0f, | ||||
| 0.0f, | 0.0f, | ||||
| FLT_MAX, | FLT_MAX, | ||||
| "Max Error Margin", | "Max Error Margin", | ||||
| "How much the new decimated curve is allowed to deviate from the original", | "How much the new decimated curve is allowed to deviate from the original", | ||||
| 0.0f, | 0.0f, | ||||
| 10.0f); | 10.0f); | ||||
| } | } | ||||