|
@@ -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 ) {
|