From 56295f968818ad913a3ca92829408692b3d7a200 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 8 Oct 2008 17:07:32 +0000 Subject: [PATCH] own error, bvh import would always miss the last frame. thanks ppClarity for picking up on this. --- release/scripts/bvh_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/scripts/bvh_import.py b/release/scripts/bvh_import.py index 2093ac109f7..5cdd8a71231 100644 --- a/release/scripts/bvh_import.py +++ b/release/scripts/bvh_import.py @@ -231,7 +231,7 @@ def read_bvh(file_path, GLOBAL_SCALE=1.0): bvh_nodes_list= bvh_nodes.values() - while lineIdx < len(file_lines) -1: + while lineIdx < len(file_lines): line= file_lines[lineIdx] for bvh_node in bvh_nodes_list: #for bvh_node in bvh_nodes_serial: @@ -726,7 +726,7 @@ def load_bvh_ui(file, PREF_UI= True): Blender.Window.WaitCursor(1) # Get the BVH data and act on it. t1= Blender.sys.time() - print '\tpassing bvh...', + print '\tparsing bvh...', bvh_nodes= read_bvh(file, IMPORT_SCALE) print '%.4f' % (Blender.sys.time()-t1) t1= Blender.sys.time()