diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-02 14:06:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-02 14:06:50 +0300 |
commit | a7ceeafd71534b21163b189a42af07358672d1c7 (patch) | |
tree | 4e240e2df81c8048a9a9081d6634a303683764a4 /release/scripts | |
parent | 4119132580d8cf172e2b2ced86a7607d117b43c2 (diff) |
- correct typos in comments.
- move boxpack struct out of the public header.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/op/io_anim_bvh/export_bvh.py | 2 | ||||
-rw-r--r-- | release/scripts/op/io_anim_bvh/import_bvh.py | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/release/scripts/op/io_anim_bvh/export_bvh.py b/release/scripts/op/io_anim_bvh/export_bvh.py index 52a51a6bd23..86c8e7f4d27 100644 --- a/release/scripts/op/io_anim_bvh/export_bvh.py +++ b/release/scripts/op/io_anim_bvh/export_bvh.py @@ -131,7 +131,7 @@ def _read(context, filepath, frame_start, frame_end, global_scale=1.0): "pose_imat", # pose_mat inverted "rest_arm_imat", # rest_arm_mat inverted "rest_local_imat", # rest_local_mat inverted - "prev_euler", # last used euler to preserve euler compability inbetween keyframes + "prev_euler", # last used euler to preserve euler compability in between keyframes ) def __init__(self, bone_name): self.name = bone_name diff --git a/release/scripts/op/io_anim_bvh/import_bvh.py b/release/scripts/op/io_anim_bvh/import_bvh.py index 96feecd177d..96b0bb56c5a 100644 --- a/release/scripts/op/io_anim_bvh/import_bvh.py +++ b/release/scripts/op/io_anim_bvh/import_bvh.py @@ -125,9 +125,9 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0): #print '%snode: %s, parent: %s' % (len(bvh_nodes_serial) * ' ', name, bvh_nodes_serial[-1]) - lineIdx += 2 # Incriment to the next line (Offset) + lineIdx += 2 # Increment to the next line (Offset) rest_head_local = Vector((float(file_lines[lineIdx][1]), float(file_lines[lineIdx][2]), float(file_lines[lineIdx][3]))) * global_scale - lineIdx += 1 # Incriment to the next line (Channels) + lineIdx += 1 # Increment to the next line (Channels) # newChannel[Xposition, Yposition, Zposition, Xrotation, Yrotation, Zrotation] # newChannel references indecies to the motiondata, @@ -163,7 +163,7 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0): my_parent = bvh_nodes_serial[-1] # account for none - # Apply the parents offset accumletivly + # Apply the parents offset accumulatively if my_parent is None: rest_head_world = Vector(rest_head_local) else: @@ -175,14 +175,14 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0): bvh_nodes_serial.append(bvh_node) # Account for an end node - if file_lines[lineIdx][0].lower() == 'end' and file_lines[lineIdx][1].lower() == 'site': # There is somtimes a name after 'End Site' but we will ignore it. - lineIdx += 2 # Incriment to the next line (Offset) + if file_lines[lineIdx][0].lower() == 'end' and file_lines[lineIdx][1].lower() == 'site': # There is sometimes a name after 'End Site' but we will ignore it. + lineIdx += 2 # Increment to the next line (Offset) rest_tail = Vector((float(file_lines[lineIdx][1]), float(file_lines[lineIdx][2]), float(file_lines[lineIdx][3]))) * global_scale bvh_nodes_serial[-1].rest_tail_world = bvh_nodes_serial[-1].rest_head_world + rest_tail bvh_nodes_serial[-1].rest_tail_local = bvh_nodes_serial[-1].rest_head_local + rest_tail - # Just so we can remove the Parents in a uniform way- End end never has kids + # Just so we can remove the Parents in a uniform way- End has kids # so this is a placeholder bvh_nodes_serial.append(None) |