remove early/obsolete debug routine
This commit is contained in:
parent
798bf1750d
commit
91dd0bd4e7
1 changed files with 1 additions and 26 deletions
|
|
@ -11,7 +11,6 @@ function init() {
|
||||||
let stores = data.open('mesh', { stores:[ "admin", "cache", "space" ] }).init(),
|
let stores = data.open('mesh', { stores:[ "admin", "cache", "space" ] }).init(),
|
||||||
moto = self.moto,
|
moto = self.moto,
|
||||||
api = mesh.api,
|
api = mesh.api,
|
||||||
sky = false,
|
|
||||||
dark = false,
|
dark = false,
|
||||||
ortho = false,
|
ortho = false,
|
||||||
zoomrev = true,
|
zoomrev = true,
|
||||||
|
|
@ -31,7 +30,7 @@ function init() {
|
||||||
// setup default workspace
|
// setup default workspace
|
||||||
space.useDefaultKeys(false);
|
space.useDefaultKeys(false);
|
||||||
space.sky.set({
|
space.sky.set({
|
||||||
grid: sky,
|
grid: false,
|
||||||
color: dark ? 0 : 0xffffff
|
color: dark ? 0 : 0xffffff
|
||||||
});
|
});
|
||||||
space.init($('container'), delta => { }, ortho);
|
space.init($('container'), delta => { }, ortho);
|
||||||
|
|
@ -175,8 +174,6 @@ function space_init(data) {
|
||||||
for (let m of selection.models()) {
|
for (let m of selection.models()) {
|
||||||
m.debug();
|
m.debug();
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
call.space_debug();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'Escape':
|
case 'Escape':
|
||||||
|
|
@ -279,33 +276,11 @@ function space_load(data) {
|
||||||
.focus();
|
.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
// on debug key press
|
|
||||||
function space_debug() {
|
|
||||||
for (let g of mesh.api.group.list()) {
|
|
||||||
let { center, size } = g.bounds;
|
|
||||||
console.group(g.id);
|
|
||||||
console.log({
|
|
||||||
center,
|
|
||||||
size,
|
|
||||||
pos: g.group.position
|
|
||||||
});
|
|
||||||
for (let m of g.models) {
|
|
||||||
console.log(m.id, {
|
|
||||||
box: m.mesh.getBoundingBox(),
|
|
||||||
pos: m.mesh.position
|
|
||||||
});
|
|
||||||
}
|
|
||||||
console.groupEnd();
|
|
||||||
}
|
|
||||||
moto.client.fn.debug();
|
|
||||||
}
|
|
||||||
|
|
||||||
// bind functions to topics
|
// bind functions to topics
|
||||||
broker.listeners({
|
broker.listeners({
|
||||||
load_files,
|
load_files,
|
||||||
space_init,
|
space_init,
|
||||||
space_load,
|
space_load,
|
||||||
space_debug,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// remove version cache bust from url
|
// remove version cache bust from url
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue