get meta working, if limping along
This commit is contained in:
parent
fec728562e
commit
5d2ec18a95
4 changed files with 5 additions and 14 deletions
9
app.js
9
app.js
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
importScripts(`/code/work.js${location.search}`);
|
||||
|
||||
const base = self.base,
|
||||
util = base.util,
|
||||
time = util.time,
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue