Skip to content

Commit

Permalink
fixed artoolkitUrl for the importScript
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Apr 6, 2020
1 parent b7dd550 commit 70ccbec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nft/nftLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@
pw: pw,
ph: ph,
camera_para: configData.cameraPara,
marker: markerUrl
marker: markerUrl,
artoolkitUrl: configData.artoolkitUrl
});

worker.onmessage = function(ev) {
Expand Down
4 changes: 2 additions & 2 deletions resources/jsartoolkit5/artoolkit/artoolkit.worker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
importScripts('../standard/artoolkit.min.js');

self.onmessage = function(e) {
var msg = e.data;
switch (msg.type) {
Expand All @@ -22,6 +20,8 @@ var markerResult = null;

function load(msg) {

importScripts(msg.artoolkitUrl);

var param = new ARCameraParam(msg.camera_para);

param.onload = function () {
Expand Down

0 comments on commit 70ccbec

Please sign in to comment.