[HOME] 3D: режим «домик» — видно комнаты (кровля и потолки скрыты); план берёт выровненные зоны, старые сохранения в браузере игнорируются
lint / hygiene (push) Failing after 23s

This commit is contained in:
root committed 2026-11-02 13:53:40 +03:00
1 parent f901d51b46
commit 88f7405fdb
3 files changed
+12 -2

No files matched your search

+11 -1
View File
@@ -208,7 +208,17 @@ class House3dCard extends HTMLElement {
o.castShadow = false; o.receiveShadow = false;
});
drop.forEach((o) => o.parent && o.parent.remove(o));
const HIDE_INTERIOR = this._config.showInterior !== true;
const DOLLHOUSE = this._config.dollhouse !== false;
const HIDE_INTERIOR = this._config.showInterior === false;
if (DOLLHOUSE) {
model.traverse((o) => {
if (!o.isMesh) return;
const n = o.name || "";
if (/^(r_north|r_south|tech_roof|porch_roof)$/.test(n) || n.indexOf("ceil_") === 0) {
o.visible = false;
}
});
}
if (HIDE_INTERIOR) {
model.traverse((o) => {
if (!o.isMesh) return;
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

+1 -1
View File
@@ -35,7 +35,7 @@ const ROOM_TITLES = {
"spalnia": "Спальня",
"kryltso": "Крыльцо"
};
const STORE = "house3d_room_px";
const STORE = "house3d_room_px_v2";
class RoomsCard extends HTMLElement {
constructor() {