Skip to content

Commit

Permalink
Make track parsing in _buildColors() more consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jan 22, 2024
1 parent 6888385 commit cef69b1
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions M2Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,7 @@ class M2Loader extends Loader {

// ignore empty tracks

if ( times.length === 0 ) {

data.tracks[ j ] = [];
continue;

}
if ( times.length === 0 ) continue;

// interpolation type

Expand Down Expand Up @@ -525,12 +520,7 @@ class M2Loader extends Loader {

// ignore empty tracks

if ( times.length === 0 ) {

data.tracks[ j ] = [];
continue;

}
if ( times.length === 0 ) continue;

// interpolation type

Expand Down

0 comments on commit cef69b1

Please sign in to comment.