Skip to content

Commit

Permalink
avoid some babel helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Mar 26, 2022
1 parent 2411463 commit 0530342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/autorotate-keypoints/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class AutorotateKeypointsPlugin extends AbstractPlugin {
}

// apply offsets to avoid crossing the origin
const workVectors = [new THREE.Vector2(...workPoints[0])];
const workVectors = [new THREE.Vector2(workPoints[0][0], workPoints[0][1])];

let k = 0;
for (let i = 1; i <= 3; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ export class VideoPlugin extends AbstractPlugin {
];

// apply offsets to avoid crossing the origin
const workVectors = [new THREE.Vector2(...workPoints[0])];
const workVectors = [new THREE.Vector2(workPoints[0][0], workPoints[0][1])];

let k = 0;
for (let i = 1; i <= 3; i++) {
Expand Down

0 comments on commit 0530342

Please sign in to comment.