Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/pose_slide.c
| Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | static void pose_slide_refresh(bContext *C, tPoseSlideOp *pso) | ||||
| for (uint ob_index = 0; ob_index < pso->objects_len; ob_index++) { | for (uint ob_index = 0; ob_index < pso->objects_len; ob_index++) { | ||||
| tPoseSlideObject *ob_data = &pso->ob_data_array[ob_index]; | tPoseSlideObject *ob_data = &pso->ob_data_array[ob_index]; | ||||
| if (ob_data->valid) { | if (ob_data->valid) { | ||||
| poseAnim_mapping_refresh(C, pso->scene, ob_data->ob); | poseAnim_mapping_refresh(C, pso->scene, ob_data->ob); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** Although this lookup is not ideal, we won't be dealing with a lot of objects at a given time. | /** | ||||
| * But if it comes to that we can instead store prev/next frme in the tPChanFCurveLink. */ | * Although this lookup is not ideal, we won't be dealing with a lot of objects at a given time. | ||||
| * But if it comes to that we can instead store prev/next frme in the #tPChanFCurveLink. | |||||
| */ | |||||
| static bool pose_frame_range_from_object_get(tPoseSlideOp *pso, Object *ob, float *prevFrameF, float *nextFrameF) | static bool pose_frame_range_from_object_get(tPoseSlideOp *pso, Object *ob, float *prevFrameF, float *nextFrameF) | ||||
| { | { | ||||
| for (uint ob_index = 0; ob_index < pso->objects_len; ob_index++) { | for (uint ob_index = 0; ob_index < pso->objects_len; ob_index++) { | ||||
| tPoseSlideObject *ob_data = &pso->ob_data_array[ob_index]; | tPoseSlideObject *ob_data = &pso->ob_data_array[ob_index]; | ||||
| Object *ob_iter = ob_data->ob; | Object *ob_iter = ob_data->ob; | ||||
| if (ob_iter == ob) { | if (ob_iter == ob) { | ||||
| *prevFrameF = ob_data->prevFrameF; | *prevFrameF = ob_data->prevFrameF; | ||||
| ▲ Show 20 Lines • Show All 1,377 Lines • Show Last 20 Lines | |||||