Skip to content

Commit

Permalink
Merge branch 'FixVertexColorInit'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Oct 12, 2018
2 parents 73f4169 + be34682 commit 0c40574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/OBJLoader2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1063,13 +1063,13 @@ THREE.OBJLoader2.Parser.prototype = {

var faceIndexVi = parseInt( faceIndexV );
var indexPointerV = 3 * ( faceIndexVi > 0 ? faceIndexVi - 1 : faceIndexVi + scope.vertices.length / 3 );
var indexPointerC = scope.colors.length > 0 ? indexPointerV : null;

var vertices = scope.rawMesh.subGroupInUse.vertices;
vertices.push( scope.vertices[ indexPointerV++ ] );
vertices.push( scope.vertices[ indexPointerV++ ] );
vertices.push( scope.vertices[ indexPointerV ] );

var indexPointerC = scope.colors.length > 0 ? indexPointerV + 1 : null;
if ( indexPointerC !== null ) {

var colors = scope.rawMesh.subGroupInUse.colors;
Expand Down

0 comments on commit 0c40574

Please sign in to comment.