Skip to content

Commit

Permalink
Update bvh_importer.py
Browse files Browse the repository at this point in the history
Fix #4. Error reading iPi Studio BVH files.
  • Loading branch information
jhoolmans committed Aug 13, 2013
1 parent 98850e5 commit cbc5ec7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bvh_importer.py
Expand Up @@ -275,6 +275,8 @@ def _read_bvh(self, e=False):
# We don't really need to use Framecount and time(since Python handles file reads nicely)
if "Frame" not in line:
data = line.split(" ")
if len(data) > 0:
if data[0] == "": data.pop(0)

if self._debug:
print "Animating.."
Expand Down Expand Up @@ -315,4 +317,4 @@ def _on_select_root(self, e):
mc.textField(self._textfield, e=True, text=str(self._rootNode))

if __name__ == "__main__":
dialog = BVHImporterDialog()
dialog = BVHImporterDialog()

0 comments on commit cbc5ec7

Please sign in to comment.