提交 c7213e28 编写于 作者: C Conrad Pinnow

modification to parsing so ke values are correctly converted from string to array

上级 f55b3d3b
......@@ -149,7 +149,7 @@ THREE.MTLLoader.prototype = {
} else {
if ( key === 'ka' || key === 'kd' || key === 'ks' ) {
if ( key === 'ka' || key === 'kd' || key === 'ks'|| key ==='ke') {
var ss = value.split( delimiter_pattern, 3 );
info[ key ] = [ parseFloat( ss[ 0 ] ), parseFloat( ss[ 1 ] ), parseFloat( ss[ 2 ] ) ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册