Skip to content

Commit

Permalink
Initialize transform matrix to avoid undefined index references
Browse files Browse the repository at this point in the history
  • Loading branch information
rawnsley authored Aug 19, 2024
1 parent c3f8f7a commit 699187a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/hoverable-visuals.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { showHoverEffect } from "../utils/permissions-utils";

const interactorOneTransform = [];
const interactorTwoTransform = [];
const interactorOneTransform = [
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1
];
const interactorTwoTransform = [
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1
];

export const validMaterials = ["MeshStandardMaterial", "MeshBasicMaterial", "MeshPhongMaterial"];
/**
Expand Down

0 comments on commit 699187a

Please sign in to comment.