Skip to content

Commit 4890017

Browse files
author
Parsa Azari
committed
fixed the missing glbs
1 parent cf8312b commit 4890017

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
transition: opacity 0.3s ease;
152152
}
153153
</style>
154-
<script type="module" crossorigin src="/3D-Portfolio/assets/index-BnSv7byL.js"></script>
154+
<script type="module" crossorigin src="/3D-Portfolio/assets/index-LlebEKMg.js"></script>
155155
<link rel="stylesheet" crossorigin href="/3D-Portfolio/assets/index-CE_aFpHU.css">
156156
</head>
157157

src/core/rendering/environments/SeveranceEnvironment.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3908,6 +3908,8 @@ export class SeveranceEnvironment extends BaseEnvironment {
39083908
console.log("[DEBUG FILM INTERIOR] interiorGroup name:", interiorGroup.name); // <<< ADDED
39093909
console.log(`Creating FILM interior at ${center.x}, ${center.z}`);
39103910

3911+
try {
3912+
39113913
// --- Special lighting at door entrance, similar to Design interior ---
39123914
if (doorPosition) {
39133915
// Create vector from door to center
@@ -4481,6 +4483,15 @@ export class SeveranceEnvironment extends BaseEnvironment {
44814483
if (!this._customWatchInteractables) this._customWatchInteractables = [];
44824484
this._customWatchInteractables.push(interact);
44834485
}
4486+
4487+
} catch (error) {
4488+
console.error("[DEBUG FILM INTERIOR] Error creating film interior:", error);
4489+
console.error("[DEBUG FILM INTERIOR] Stack trace:", error.stack);
4490+
// Add basic fallback interior
4491+
const fallbackLight = new THREE.PointLight(0xffffff, 1.0, 10, 2);
4492+
fallbackLight.position.set(center.x, center.y + 2, center.z);
4493+
interiorGroup.add(fallbackLight);
4494+
}
44844495
}
44854496

44864497
/** Creates interior for Performance Art section. */
@@ -5093,7 +5104,7 @@ export class SeveranceEnvironment extends BaseEnvironment {
50935104
// <<< ADD LOG INSIDE CASE 'FILM' >>>
50945105
console.log("[CPSI DEBUG] Inside case 'FILM'. About to call _createFilmInterior.");
50955106
console.log('[DEBUG] Calling _createFilmInterior', {interiorGroup, center, size, doorPosition});
5096-
this._createFilmInterior(interiorGroup, center, size, doorPosition);
5107+
await this._createFilmInterior(interiorGroup, center, size, doorPosition);
50975108
break;
50985109
case 'ART':
50995110
await this._createArtInterior(interiorGroup, center, size, doorPosition);

0 commit comments

Comments
 (0)