Repair display of iTaSC IK constraint. Fix crash in GE with high priority action overwriting low priority action.

This commit is contained in:
Benoit Bolsee 2009-11-22 22:42:57 +00:00
parent 042f52b162
commit d83b251486
2 changed files with 2 additions and 2 deletions

@ -159,7 +159,7 @@ class ConstraintButtonsPanel(bpy.types.Panel):
def IK(self, context, layout, con, wide_ui):
if context.object.pose.ik_solver == "ITASC":
layout.itemR(con, "ik_type")
getattr(self, 'IK_' + con.ik_type)(context, layout, con)
getattr(self, 'IK_' + con.ik_type)(context, layout, con, wide_ui)
else:
# Legacy IK constraint
self.target_template(layout, con, wide_ui)

@ -629,7 +629,7 @@ static void copy_pose_channel_data(bPoseChannel *pchan, const bPoseChannel *chan
pchan->flag= chan->flag;
con= chan->constraints.first;
for(pcon= pchan->constraints.first; pcon; pcon= pcon->next, con= con->next) {
for(pcon= pchan->constraints.first; pcon && con; pcon= pcon->next, con= con->next) {
pcon->enforce= con->enforce;
pcon->headtail= con->headtail;
}