Skip to content

Commit

Permalink
removed expression variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymovin committed Nov 9, 2021
1 parent 752f122 commit ddf52d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions player/js/utils/expressions/ExpressionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var ExpressionManager = (function () {
var document = null;
var XMLHttpRequest = null;
var fetch = null;
var frames = null;

function $bm_isInstanceOfArray(arr) {
return arr.constructor === Array || arr.constructor === Float32Array;
Expand Down Expand Up @@ -591,11 +592,11 @@ var ExpressionManager = (function () {
return obKey;
}

function framesToTime(frames, fps) {
function framesToTime(fr, fps) {
if (!fps) {
fps = elem.comp.globalData.frameRate;
}
return frames / fps;
return fr / fps;
}

function timeToFrames(t, fps) {
Expand Down

0 comments on commit ddf52d4

Please sign in to comment.