Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/pose_slide.c
| Show First 20 Lines • Show All 1,240 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Common code for defining RNA properties. | * Common code for defining RNA properties. | ||||
| */ | */ | ||||
| static void pose_slide_opdef_properties(wmOperatorType *ot) | static void pose_slide_opdef_properties(wmOperatorType *ot) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| prop = RNA_def_float_percentage(ot->srna, | prop = RNA_def_float_factor(ot->srna, | ||||
| "percentage", | "factor", | ||||
| 0.5f, | 0.5f, | ||||
| 0.0f, | 0.0f, | ||||
| 1.0f, | 1.0f, | ||||
| "Percentage", | "Factor", | ||||
| "Weighting factor for which keyframe is favored more", | "Weighting factor for which keyframe is favored more", | ||||
| 0.0, | 0.0, | ||||
| 1.0); | 1.0); | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| prop = RNA_def_int(ot->srna, | prop = RNA_def_int(ot->srna, | ||||
| "prev_frame", | "prev_frame", | ||||
| 0, | 0, | ||||
| MINAFRAME, | MINAFRAME, | ||||
| MAXFRAME, | MAXFRAME, | ||||
| "Previous Keyframe", | "Previous Keyframe", | ||||
| ▲ Show 20 Lines • Show All 752 Lines • Show Last 20 Lines | |||||