own error, bvh import would always miss the last frame.

thanks ppClarity for picking up on this.
This commit is contained in:
Campbell Barton 2008-10-08 17:07:32 +00:00
parent 63fb586496
commit 56295f9688

@ -231,7 +231,7 @@ def read_bvh(file_path, GLOBAL_SCALE=1.0):
bvh_nodes_list= bvh_nodes.values() bvh_nodes_list= bvh_nodes.values()
while lineIdx < len(file_lines) -1: while lineIdx < len(file_lines):
line= file_lines[lineIdx] line= file_lines[lineIdx]
for bvh_node in bvh_nodes_list: for bvh_node in bvh_nodes_list:
#for bvh_node in bvh_nodes_serial: #for bvh_node in bvh_nodes_serial:
@ -726,7 +726,7 @@ def load_bvh_ui(file, PREF_UI= True):
Blender.Window.WaitCursor(1) Blender.Window.WaitCursor(1)
# Get the BVH data and act on it. # Get the BVH data and act on it.
t1= Blender.sys.time() t1= Blender.sys.time()
print '\tpassing bvh...', print '\tparsing bvh...',
bvh_nodes= read_bvh(file, IMPORT_SCALE) bvh_nodes= read_bvh(file, IMPORT_SCALE)
print '%.4f' % (Blender.sys.time()-t1) print '%.4f' % (Blender.sys.time()-t1)
t1= Blender.sys.time() t1= Blender.sys.time()