|
@@ -138,7 +138,7 @@ export class SimplificationQueue {
|
|
task.settings.forEach((setting) => {
|
|
task.settings.forEach((setting) => {
|
|
var simplifier = this.getSimplifier(task);
|
|
var simplifier = this.getSimplifier(task);
|
|
simplifier.simplify(setting, (newMesh) => {
|
|
simplifier.simplify(setting, (newMesh) => {
|
|
- if (typeof(setting.distance) !== 'undefined') {
|
|
|
|
|
|
+ if (settings.distance !== undefined) {
|
|
task.mesh.addLODLevel(setting.distance, newMesh);
|
|
task.mesh.addLODLevel(setting.distance, newMesh);
|
|
}
|
|
}
|
|
newMesh.isVisible = true;
|
|
newMesh.isVisible = true;
|
|
@@ -156,7 +156,7 @@ export class SimplificationQueue {
|
|
|
|
|
|
var runDecimation = (setting: ISimplificationSettings, callback: () => void) => {
|
|
var runDecimation = (setting: ISimplificationSettings, callback: () => void) => {
|
|
simplifier.simplify(setting, (newMesh) => {
|
|
simplifier.simplify(setting, (newMesh) => {
|
|
- if (typeof(setting.distance) !== 'undefined') {
|
|
|
|
|
|
+ if (settings.distance !== undefined) {
|
|
task.mesh.addLODLevel(setting.distance, newMesh);
|
|
task.mesh.addLODLevel(setting.distance, newMesh);
|
|
}
|
|
}
|
|
newMesh.isVisible = true;
|
|
newMesh.isVisible = true;
|