未验证 提交 3bd2c4df 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #17549 from Mugen87/dev34

OBJLoader: Fix color attribute.
......@@ -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.
先完成此消息的编辑!
想要评论请 注册