提交 9b9b6877 编写于 作者: M Mugen87

OBJLoader: Fix color attribute.

上级 9a9243a8
......@@ -286,6 +286,12 @@ THREE.OBJLoader = ( function () {
this.addVertex( ia, ib, ic );
if ( this.colors.length > 0 ) {
this.addColor( ia, ib, ic );
}
if ( ua !== undefined && ua !== '' ) {
var uvLen = this.uvs.length;
......@@ -309,12 +315,6 @@ THREE.OBJLoader = ( function () {
}
if ( this.colors.length > 0 ) {
this.addColor( ia, ib, ic );
}
},
addPointGeometry: function ( vertices ) {
......
......@@ -303,6 +303,12 @@ var OBJLoader = ( function () {
this.addVertex( ia, ib, ic );
if ( this.colors.length > 0 ) {
this.addColor( ia, ib, ic );
}
if ( ua !== undefined && ua !== '' ) {
var uvLen = this.uvs.length;
......@@ -326,12 +332,6 @@ var OBJLoader = ( function () {
}
if ( this.colors.length > 0 ) {
this.addColor( ia, ib, ic );
}
},
addPointGeometry: function ( vertices ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册