Skip to content

Commit

Permalink
Remove useless code and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
remmel committed May 10, 2023
1 parent 524d31c commit b823b05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/VologramBodyReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,12 @@ export class VologramBodyReader {
// if keyframe not loaded
if(frameDirectory.keyFrame === 0 && frameDirectory.keyFrameNumber !== this.lastKeyFrameNumber) {
//prev version, was more optimized because was loading only this.readFrameData() not unnecessary data such as vertices, but cleaner code now. And normally skipped frame should not happen often
this.reader.cur = frameDirectory.cur
const keyframeDirectory = this.framesDirectory[frameDirectory.keyFrameNumber]
this.reader.cur = keyframeDirectory.cur
this.reader.cur = keyframeDirectory.cur //put pointer to the closest previous keyframe
this.readNextFrame(true)
}

this.reader.cur = frameDirectory.cur
this.reader.cur = frameDirectory.cur //put pointer to frameNum frame
this.readNextFrame(true)
}

Expand Down

0 comments on commit b823b05

Please sign in to comment.