Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/pose_utils.c
| Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | void poseAnim_mapping_autoKeyframe(bContext *C, Scene *scene, ListBase *pfLinks, float cframe) | ||||
| /* do the bone paths | /* do the bone paths | ||||
| * - only do this if keyframes should have been added | * - only do this if keyframes should have been added | ||||
| * - do not calculate unless there are paths already to update... | * - do not calculate unless there are paths already to update... | ||||
| */ | */ | ||||
| FOREACH_OBJECT_IN_MODE_BEGIN (view_layer, v3d, OB_ARMATURE, OB_MODE_POSE, ob) { | FOREACH_OBJECT_IN_MODE_BEGIN (view_layer, v3d, OB_ARMATURE, OB_MODE_POSE, ob) { | ||||
| if (ob->id.tag & LIB_TAG_DOIT) { | if (ob->id.tag & LIB_TAG_DOIT) { | ||||
| if (ob->pose->avs.path_bakeflag & MOTIONPATH_BAKE_HAS_PATHS) { | if (ob->pose->avs.path_bakeflag & MOTIONPATH_BAKE_HAS_PATHS) { | ||||
| // ED_pose_clear_paths(C, ob); // XXX for now, don't need to clear | // ED_pose_clear_paths(C, ob); // XXX for now, don't need to clear | ||||
| ED_pose_recalculate_paths(C, scene, ob, false); | /* TODO(sergey): Should ensure we can use more narrow update range here. */ | ||||
| ED_pose_recalculate_paths(C, scene, ob, POSE_PATH_CALC_RANGE_FULL); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| FOREACH_OBJECT_IN_MODE_END; | FOREACH_OBJECT_IN_MODE_END; | ||||
| } | } | ||||
| /* ------------------------- */ | /* ------------------------- */ | ||||
| Show All 23 Lines | |||||