Skip to content

Commit f6f513b

Browse files
committed
Incude THREEx import in gps-new-camera, to allow use of ES6 modules
1 parent 3821082 commit f6f513b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

aframe/src/new-location-based/gps-new-camera.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as AFRAME from "aframe";
2+
import * as THREEx from "../../../three.js/build/ar-threex-location-only.js";
23

34
AFRAME.registerComponent("gps-new-camera", {
45
schema: {

three.js/src/location-based/js/location-based.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { SphMercProjection } from "./sphmerc-projection.js";
2+
import * as THREE from "three";
23

34
class LocationBased {
45
constructor(scene, camera, options = {}) {

0 commit comments

Comments
 (0)