Repair display of iTaSC IK constraint. Fix crash in GE with high priority action overwriting low priority action.
This commit is contained in:
parent
042f52b162
commit
d83b251486
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user