Update applyViewMode method in viewport-host.ts

This commit is contained in:
2026-04-02 22:16:43 +02:00
parent 8035b75220
commit 73efd566f4

View File

@@ -225,7 +225,7 @@ export class ViewportHost {
this.scene.add(this.boxCreatePreviewEdges);
this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
this.renderer.setClearAlpha(0);
this.applyViewMode(this.viewMode);
this.applyViewModePose();
}
mount(container: HTMLElement) {
@@ -488,6 +488,8 @@ export class ViewportHost {
return this.boxCreatePlane.set(new Vector3(0, 0, 1), 0);
case "side":
return this.boxCreatePlane.set(new Vector3(1, 0, 0), 0);
default:
return this.boxCreatePlane.set(new Vector3(0, 1, 0), 0);
}
}