Skip to content

Commit

Permalink
Edited code snippet
Browse files Browse the repository at this point in the history
num frames not needed
  • Loading branch information
funwithtriangles authored Jan 27, 2019
1 parent b25752f commit 972f1d3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ loader.load(url, (gltf) => {

const inc = getInc(track.name, scene)

const numFrames = track.values.length / inc

if (numFrames < 3) {
break
}

for (let i = 0; i < track.values.length - inc; i += inc) {
for (let j = 0; j < inc; j++) {
if (Math.abs(track.values[ i + j ] - track.values[ i + j + inc ]) > 0.000001) {
Expand Down

0 comments on commit 972f1d3

Please sign in to comment.