diff --git a/src/model.js b/src/model.js index 1350cae..012c630 100644 --- a/src/model.js +++ b/src/model.js @@ -1,4 +1,4 @@ -import THREE from "three"; +import * as THREE from "three"; function toFaceVertices(x1, y1, x2, y2, w, h) { return [ diff --git a/src/orbit_controls.js b/src/orbit_controls.js index ec082a6..08f8af2 100644 --- a/src/orbit_controls.js +++ b/src/orbit_controls.js @@ -1,4 +1,4 @@ -import THREE from "three"; +import * as THREE from "three"; class OrbitControls extends THREE.EventDispatcher { /** diff --git a/src/viewer.js b/src/viewer.js index 1af5839..2d6283f 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -1,4 +1,4 @@ -import THREE from "three"; +import * as THREE from "three"; import { PlayerObject } from "./model"; import { OrbitControls } from "./orbit_controls"; import { invokeAnimation } from "./animation";