fix import three.js
This commit is contained in:
parent
846c0b9939
commit
a654cd20e1
|
|
@ -1,4 +1,4 @@
|
||||||
import THREE from "three";
|
import * as THREE from "three";
|
||||||
|
|
||||||
function toFaceVertices(x1, y1, x2, y2, w, h) {
|
function toFaceVertices(x1, y1, x2, y2, w, h) {
|
||||||
return [
|
return [
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import THREE from "three";
|
import * as THREE from "three";
|
||||||
|
|
||||||
class OrbitControls extends THREE.EventDispatcher {
|
class OrbitControls extends THREE.EventDispatcher {
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import THREE from "three";
|
import * as THREE from "three";
|
||||||
import { PlayerObject } from "./model";
|
import { PlayerObject } from "./model";
|
||||||
import { OrbitControls } from "./orbit_controls";
|
import { OrbitControls } from "./orbit_controls";
|
||||||
import { invokeAnimation } from "./animation";
|
import { invokeAnimation } from "./animation";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue