|
@@ -264,6 +264,7 @@ export default class Scene extends Mitt {
|
|
|
this.emit("devicePixelRatio");
|
|
|
return;
|
|
|
}
|
|
|
+ window.isExportScreenshot = true
|
|
|
|
|
|
this.player.floorplanControls.reset();
|
|
|
this.onResize();
|
|
@@ -299,6 +300,7 @@ export default class Scene extends Mitt {
|
|
|
if (index === slides) {
|
|
|
console.log("last");
|
|
|
that.emit("submitScreenshot", true);
|
|
|
+ window.isExportScreenshot = false
|
|
|
}
|
|
|
}, index * 500);
|
|
|
})(i, this); // 传递当前迭代的索引i给setTimeout的回调函数
|
|
@@ -310,6 +312,7 @@ export default class Scene extends Mitt {
|
|
|
this.player.floorplanControls.reset();
|
|
|
this.screenshot(-0.3, 227);
|
|
|
this.emit("submitScreenshot", true);
|
|
|
+ window.isExportScreenshot = false
|
|
|
}
|
|
|
}
|
|
|
}
|