mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 18:05:43 +02:00
Update engine.ts
This commit is contained in:
@@ -738,9 +738,6 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
this.zGridPreviewPlane.isVisible = false;
|
this.zGridPreviewPlane.isVisible = false;
|
||||||
|
|
||||||
this.selectionOutlineLayer = new BABYLON.SelectionOutlineLayer('outliner', this.scene);
|
this.selectionOutlineLayer = new BABYLON.SelectionOutlineLayer('outliner', this.scene);
|
||||||
if (SNAPSHOT_RENDERING) {
|
|
||||||
this.sr.updateMeshesForEffectLayer(this.selectionOutlineLayer);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_DEV_) {
|
if (_DEV_) {
|
||||||
// snapshot renderingかつglow layerが有効だとなんかクラッシュする
|
// snapshot renderingかつglow layerが有効だとなんかクラッシュする
|
||||||
@@ -1456,11 +1453,13 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private highlightMeshes(meshes: BABYLON.AbstractMesh[]) {
|
private highlightMeshes(meshes: BABYLON.AbstractMesh[]) {
|
||||||
|
if (this.engine.snapshotRendering) return; // snapshot rendering内でそのままやろうとするとエラーになる 回避実装もめんどいので単に無視
|
||||||
this.clearHighlight();
|
this.clearHighlight();
|
||||||
this.selectionOutlineLayer.addSelection(meshes);
|
this.selectionOutlineLayer.addSelection(meshes);
|
||||||
}
|
}
|
||||||
|
|
||||||
private clearHighlight() {
|
private clearHighlight() {
|
||||||
|
if (this.engine.snapshotRendering) return; // snapshot rendering内でそのままやろうとするとエラーになる 回避実装もめんどいので単に無視
|
||||||
this.selectionOutlineLayer.clearSelection();
|
this.selectionOutlineLayer.clearSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1826,6 +1825,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
|
|
||||||
public async exitEditMode() {
|
public async exitEditMode() {
|
||||||
this.isEditMode = false;
|
this.isEditMode = false;
|
||||||
|
this.selectObject(null);
|
||||||
|
|
||||||
await this.bake();
|
await this.bake();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user