get meta working, if limping along

This commit is contained in:
Stewart Allen 2020-06-03 22:59:15 -04:00
commit 5d2ec18a95
4 changed files with 5 additions and 14 deletions

9
app.js
View file

@ -253,7 +253,7 @@ const script = {
"kiri/export",
"@devices"
].map(p => p.charAt(0) !== '@' ? `src/${p}.js` : p),
work : [
worker : [
"kiri",
"ext/three",
"ext/pngjs",
@ -282,11 +282,7 @@ const script = {
"mode/laser/driver",
"kiri/widget",
"kiri/print",
"kiri/codec"
].map(p => `src/${p}.js`),
worker : [
"kiri",
"license",
"kiri/codec",
"kiri/worker"
].map(p => `src/${p}.js`),
meta : [
@ -607,7 +603,6 @@ function prepareScripts() {
synth.devices = `devices = ${JSON.stringify(devs)};`;
code.meta = concatCode(script.meta);
code.kiri = concatCode(script.kiri);
code.work = concatCode(script.work);
code.worker = concatCode(script.worker);
}

View file

@ -2,8 +2,6 @@
"use strict";
importScripts(`/code/work.js${location.search}`);
const base = self.base,
util = base.util,
time = util.time,

View file

@ -22,12 +22,9 @@
"use strict";
let gs_meta = exports;
let gs_meta_debug = false; // 'line', 'poly', or 'cut'
THREE.Material.prototype.motoSetup = function() {
this.fog = false;
this.transparent = gs_meta_debug ? true : false;
this.transparent = false;
let hidden = this.clone();
hidden.visible = false;
@ -271,7 +268,7 @@ THREE.Face3.prototype.mVisible = function(show) {
let debugGroup = new THREE.Group(),
debugAdded = false,
debugLayer = new Layer(debugGroup),
debugExport = gs_meta_debug;
debugExport = false;
/** ******************************************************************
* LETS_GET_THIS_PARTY_STARTED()

View file

@ -11,6 +11,7 @@
<link rel="icon" href="/meta/favicon.ico">
<link rel="apple-touch-icon" href="/meta/favicon-mobile.png">
<link rel="stylesheet" type="text/css" href="/meta/index.css">
<script>module={};kiri={};</script>
<script src="/code/meta.js"></script>
</head>
<body>