Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/armature_update.c
| Show First 20 Lines • Show All 637 Lines • ▼ Show 20 Lines | for (bPoseChannel *pchan = pose->chanbase.first; pchan != NULL; pchan = pchan->next) { | ||||
| /* Free B-Bone shape data cache if it's not a B-Bone. */ | /* Free B-Bone shape data cache if it's not a B-Bone. */ | ||||
| if (pchan->bone == NULL || pchan->bone->segments <= 1) { | if (pchan->bone == NULL || pchan->bone->segments <= 1) { | ||||
| BKE_pose_channel_free_bbone_cache(&pchan->runtime); | BKE_pose_channel_free_bbone_cache(&pchan->runtime); | ||||
| } | } | ||||
| } | } | ||||
| BLI_assert(pose->chan_array != NULL || BLI_listbase_is_empty(&pose->chanbase)); | BLI_assert(pose->chan_array != NULL || BLI_listbase_is_empty(&pose->chanbase)); | ||||
| if (object->proxy != NULL) { | |||||
| object->proxy->proxy_from = object; | |||||
| } | |||||
| } | } | ||||
| void BKE_pose_eval_init_ik(struct Depsgraph *depsgraph, Scene *scene, Object *object) | void BKE_pose_eval_init_ik(struct Depsgraph *depsgraph, Scene *scene, Object *object) | ||||
| { | { | ||||
| DEG_debug_print_eval(depsgraph, __func__, object->id.name, object); | DEG_debug_print_eval(depsgraph, __func__, object->id.name, object); | ||||
| BLI_assert(object->type == OB_ARMATURE); | BLI_assert(object->type == OB_ARMATURE); | ||||
| const float ctime = BKE_scene_frame_get(scene); /* not accurate... */ | const float ctime = BKE_scene_frame_get(scene); /* not accurate... */ | ||||
| bArmature *armature = (bArmature *)object->data; | bArmature *armature = (bArmature *)object->data; | ||||
| ▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines | |||||