提交 2b90f7c0 编写于 作者: A alteredq

Fixed broken converter multi-dot filenames fix.

Also implanted Animation fix from empaempa.
上级 0bf0e59f
......@@ -216,7 +216,7 @@ THREE.Animation.prototype.update = function( deltaTimeMS ) {
// did we loop?
if ( currentTime <= unloopedCurrentTime ) {
if ( currentTime < unloopedCurrentTime ) {
if ( this.loop ) {
......
......@@ -242,7 +242,7 @@ def get_name(fname):
"""Create model name based of filename ("path/fname.js" -> "fname").
"""
return os.path.splitext(os.path.basename(fname))
return os.path.splitext(os.path.basename(fname))[0]
def bbox(vertices):
"""Compute bounding box of vertex array.
......
......@@ -242,7 +242,7 @@ def get_name(fname):
"""Create model name based of filename ("path/fname.js" -> "fname").
"""
return os.path.splitext(os.path.basename(fname))
return os.path.splitext(os.path.basename(fname))[0]
def bbox(vertices):
"""Compute bounding box of vertex array.
......
......@@ -242,7 +242,7 @@ def get_name(fname):
"""Create model name based of filename ("path/fname.js" -> "fname").
"""
return os.path.splitext(os.path.basename(fname))
return os.path.splitext(os.path.basename(fname))[0]
def bbox(vertices):
"""Compute bounding box of vertex array.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册