Skip to content

Commit 7602900

Browse files
committed
VertexColors support on ColladaLoader (now for real).
1 parent 84b0f89 commit 7602900

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extras/loaders/ColladaLoader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,14 +1943,14 @@ THREE.ColladaLoader = function () {
19431943

19441944
if ( vcount == 3 ) {
19451945

1946-
face = new THREE.Face3( vs[0], vs[1], vs[2], [ ns[0], ns[1], ns[2] ] );
1946+
face = new THREE.Face3( vs[0], vs[1], vs[2], [ ns[0], ns[1], ns[2] ], cs.length ? cs : new THREE.Color() );
19471947

19481948
} else if ( vcount == 4 ) {
19491949

1950-
face = new THREE.Face4( vs[0], vs[1], vs[2], vs[3], [ ns[0], ns[1], ns[2], ns[3] ] );
1950+
face = new THREE.Face4( vs[0], vs[1], vs[2], vs[3], [ ns[0], ns[1], ns[2], ns[3] ], cs.length ? cs : new THREE.Color() );
19511951

19521952
}
1953-
1953+
19541954
face.daeMaterial = primitive.material;
19551955
geom.faces.push( face );
19561956

0 commit comments

Comments
 (0)