提交 a92f3300 编写于 作者: T Thomas Matelich

Fix issue with multiple appended positive floats less than 1

上级 6f714a41
......@@ -660,12 +660,15 @@ THREE.SVGLoader.prototype = {
var number = array[ i ];
// Handle values like 48.6037.7
// Handle values like 48.6037.7.8
// TODO Find a regex for this
if ( number.indexOf( '.' ) !== number.lastIndexOf( '.' ) ) {
array.splice( i + 1, 0, '0.' + number.split( '.' )[ 2 ] );
var split = number.split('.');
for(var s = 2; s < split.length; s++) {
array.splice( i + s - 1, 0, '0.' + split[ s ] );
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册