Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/armature.c
| Context not available. | |||||
| #include "atomic_ops.h" | #include "atomic_ops.h" | ||||
| #include "CLG_log.h" | |||||
| static CLG_LogRef LOG = { "bke.armature" }; | |||||
| /* **************** Generic Functions, data level *************** */ | /* **************** Generic Functions, data level *************** */ | ||||
| bArmature *BKE_armature_add(Main *bmain, const char *name) | bArmature *BKE_armature_add(Main *bmain, const char *name) | ||||
| Context not available. | |||||
| } | } | ||||
| if ((armOb->pose->flag & POSE_RECALC) != 0) { | if ((armOb->pose->flag & POSE_RECALC) != 0) { | ||||
| printf("ERROR! Trying to evaluate influence of armature '%s' which needs Pose recalc!\n", armOb->id.name); | CLOG_ERROR(&LOG, "Trying to evaluate influence of armature '%s' which needs Pose recalc!", armOb->id.name); | ||||
| BLI_assert(0); | BLI_assert(0); | ||||
| } | } | ||||
| Context not available. | |||||
| ObjectBBoneDeform *bbone_deform = | ObjectBBoneDeform *bbone_deform = | ||||
| BKE_armature_cached_bbone_deformation_get(armOb); | BKE_armature_cached_bbone_deformation_get(armOb); | ||||
| if (bbone_deform == NULL || bbone_deform->pdef_info_array == NULL) { | if (bbone_deform == NULL || bbone_deform->pdef_info_array == NULL) { | ||||
| fprintf(stderr, | CLOG_ERROR(&LOG, | ||||
| "Armature does not have bbone cache %s, " | "Armature does not have bbone cache %s, " | ||||
| "usually happens due to a dependency cycle.\n", | "usually happens due to a dependency cycle.\n", | ||||
| armOb->id.name + 2); | armOb->id.name + 2); | ||||
| Context not available. | |||||
| for (pchan = pose->chanbase.first; pchan; pchan = pchan->next) { | for (pchan = pose->chanbase.first; pchan; pchan = pchan->next) { | ||||
| if (pchan->bone->layer & layer_protected) { | if (pchan->bone->layer & layer_protected) { | ||||
| if (BKE_pose_channel_find_name(frompose, pchan->name) == NULL) { | if (BKE_pose_channel_find_name(frompose, pchan->name) == NULL) { | ||||
| printf("failed to sync proxy armature because '%s' is missing pose channel '%s'\n", | CLOG_ERROR(&LOG, "failed to sync proxy armature because '%s' is missing pose channel '%s'", | ||||
| from->id.name, pchan->name); | from->id.name, pchan->name); | ||||
| error = 1; | error = 1; | ||||
| } | } | ||||
| Context not available. | |||||