Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/pose_edit.c
| Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | /* set default settings from existing/stored settings */ | ||||
| RNA_int_set(op->ptr, "end_frame", avs->path_ef); | RNA_int_set(op->ptr, "end_frame", avs->path_ef); | ||||
| RNA_pointer_create(NULL, &RNA_AnimVizMotionPaths, avs, &avs_ptr); | RNA_pointer_create(NULL, &RNA_AnimVizMotionPaths, avs, &avs_ptr); | ||||
| RNA_enum_set(op->ptr, "bake_location", RNA_enum_get(&avs_ptr, "bake_location")); | RNA_enum_set(op->ptr, "bake_location", RNA_enum_get(&avs_ptr, "bake_location")); | ||||
| } | } | ||||
| /* show popup dialog to allow editing of range... */ | /* show popup dialog to allow editing of range... */ | ||||
| // FIXME: hardcoded dimensions here are just arbitrary | // FIXME: hardcoded dimensions here are just arbitrary | ||||
| return WM_operator_props_dialog_popup(C, op, 200, 200); | return WM_operator_props_dialog_popup(C, op, 200); | ||||
| } | } | ||||
| /* For the object with pose/action: create path curves for selected bones | /* For the object with pose/action: create path curves for selected bones | ||||
| * This recalculates the WHOLE path within the pchan->pathsf and pchan->pathef range | * This recalculates the WHOLE path within the pchan->pathsf and pchan->pathef range | ||||
| */ | */ | ||||
| static int pose_calculate_paths_exec(bContext *C, wmOperator *op) | static int pose_calculate_paths_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Object *ob = BKE_object_pose_armature_get(CTX_data_active_object(C)); | Object *ob = BKE_object_pose_armature_get(CTX_data_active_object(C)); | ||||
| ▲ Show 20 Lines • Show All 908 Lines • Show Last 20 Lines | |||||