own error, bvh import would always miss the last frame.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 8 Oct 2008 17:07:32 +0000 (17:07 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 8 Oct 2008 17:07:32 +0000 (17:07 +0000)
thanks ppClarity for picking up on this.

release/scripts/bvh_import.py

index 2093ac109f73fca7791f7af0d3e3786d2e5c48ff..5cdd8a712316da1b1b088de37afa05d0a05f29a6 100644 (file)
@@ -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()