diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-18 14:40:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-18 14:40:55 +0300 |
commit | 67c295da9c471d5529398288f4b3ddc09a28b810 (patch) | |
tree | ca776357951967c5f50f4e263d1f1674a14ddd49 /source/blender/blenkernel | |
parent | 95229aa6f513e8346578836bc384bccd14b8c472 (diff) |
rename pose_channels to bones
was: object.pose.pose_channels["Bone"]
now: object.pose.bones["Bone"]
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/anim_sys.c | 4 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/fcurve.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/ipo.c | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index c72a212ae32..33f3658c53b 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -868,7 +868,7 @@ short action_get_item_transforms (bAction *act, Object *ob, bPoseChannel *pchan, /* build PointerRNA from provided data to obtain the paths to use */ if (pchan) - RNA_pointer_create((ID *)ob, &RNA_PoseChannel, pchan, &ptr); + RNA_pointer_create((ID *)ob, &RNA_PoseBone, pchan, &ptr); else if (ob) RNA_id_pointer_create((ID *)ob, &ptr); else diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c index e2849825862..5ebcec63cd4 100644 --- a/source/blender/blenkernel/intern/anim_sys.c +++ b/source/blender/blenkernel/intern/anim_sys.c @@ -353,7 +353,7 @@ static void nlastrips_path_rename_fix (ID *owner_id, char *prefix, char *oldName /* Fix all RNA-Paths in the AnimData block used by the given ID block * NOTE: it is assumed that the structure we're replacing is <prefix><["><name><"]> - * i.e. pose.pose_channels["Bone"] + * i.e. pose.bones["Bone"] */ void BKE_animdata_fix_paths_rename (ID *owner_id, AnimData *adt, char *prefix, char *oldName, char *newName) { @@ -388,7 +388,7 @@ void BKE_animdata_fix_paths_rename (ID *owner_id, AnimData *adt, char *prefix, c /* Fix all RNA-Paths throughout the database (directly access the Global.main version) * NOTE: it is assumed that the structure we're replacing is <prefix><["><name><"]> - * i.e. pose.pose_channels["Bone"] + * i.e. pose.bones["Bone"] */ void BKE_all_animdata_fix_paths_rename (char *prefix, char *oldName, char *newName) { diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index 8b848ac5371..302b81f2a04 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -327,7 +327,7 @@ static void dag_add_driver_relation(AnimData *adt, DagForest *dag, DagNode *node node1 = dag_get_node(dag, dtar->id); /* check if bone... */ - if ((ob->type==OB_ARMATURE) && dtar->rna_path && strstr(dtar->rna_path, "pose.pose_channels[")) + if ((ob->type==OB_ARMATURE) && dtar->rna_path && strstr(dtar->rna_path, "pose.bones[")) dag_add_relation(dag, node1, node, isdata?DAG_RL_DATA_DATA:DAG_RL_DATA_OB, "Driver"); /* check if ob data */ else if (dtar->rna_path && strstr(dtar->rna_path, "data.")) diff --git a/source/blender/blenkernel/intern/fcurve.c b/source/blender/blenkernel/intern/fcurve.c index 40328c876be..c451168a005 100644 --- a/source/blender/blenkernel/intern/fcurve.c +++ b/source/blender/blenkernel/intern/fcurve.c @@ -881,7 +881,7 @@ static void driver_get_target_pchans2 (ChannelDriver *driver, bPoseChannel **pch /* resolve path so that we have pointer to the right posechannel */ if (RNA_path_resolve(&id_ptr, dtar->rna_path, &ptr, &prop)) { /* is pointer valid (i.e. pointing to an actual posechannel */ - if ((ptr.type == &RNA_PoseChannel) && (ptr.data)) { + if ((ptr.type == &RNA_PoseBone) && (ptr.data)) { /* first or second target? */ if (i) *pchan1= ptr.data; diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c index 9e9a1719952..18a8210c68d 100644 --- a/source/blender/blenkernel/intern/ipo.c +++ b/source/blender/blenkernel/intern/ipo.c @@ -919,11 +919,11 @@ static char *get_rna_access (int blocktype, int adrcode, char actname[], char co /* append preceeding bits to path */ if ((actname && actname[0]) && (constname && constname[0])) { /* Constraint in Pose-Channel */ - sprintf(buf, "pose.pose_channels[\"%s\"].constraints[\"%s\"]", actname, constname); + sprintf(buf, "pose.bones[\"%s\"].constraints[\"%s\"]", actname, constname); } else if (actname && actname[0]) { /* Pose-Channel */ - sprintf(buf, "pose.pose_channels[\"%s\"]", actname); + sprintf(buf, "pose.bones[\"%s\"]", actname); } else if (constname && constname[0]) { /* Constraint in Object */ |