Don't die on script errors
This commit is contained in:
parent
f5f677291d
commit
ce9c15836b
|
@ -263,8 +263,11 @@ export function buildMesh(
|
|||
}
|
||||
case "turtle": {
|
||||
const t = new TurtleVM(name, scene, meshSpec.value.program.map(fromJS));
|
||||
t.debug = true;
|
||||
t.exec();
|
||||
try {
|
||||
t.exec();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
return {
|
||||
rootnode: t.container,
|
||||
subnodes: Promise.resolve(t.meshes),
|
||||
|
|
Loading…
Reference in New Issue