select PoseBone attribute was made only available on bone.

This commit is contained in:
Campbell Barton 2011-03-01 07:52:13 +00:00
parent 244f456a3c
commit b4246549e7

@ -98,7 +98,7 @@ def bake(frame_start, frame_end, step=1, only_selected=False):
pose_items = pose.bones.items()
for name, pbone in pose_items:
if only_selected and not pbone.select:
if only_selected and not pbone.bone.select:
continue
for f in frame_range: