bx-1379-redesign #15

Merged
ksenia_mikhailova merged 124 commits from bx-1379-redesign into dev 2024-09-06 15:39:13 +03:00
3 changed files with 6 additions and 6 deletions
Showing only changes of commit e62d317f1e - Show all commits

View File

@ -1,8 +1,8 @@
<!doctype html>
<html lang="en">
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>Проекты Кустарщины</title>
</head>
<body>

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { onMounted, onUnmounted, reactive, Ref, ref, watch } from 'vue';
import { getCurrentInstance, onMounted, onUnmounted, reactive, Ref, ref, watch } from 'vue';
import {
Box3, Color, DoubleSide, Group, Mesh, PlaneGeometry,
MeshStandardMaterial, MeshStandardMaterialParameters,
@ -278,7 +278,6 @@ watch(() => [props.source, process_loading.value], ([source, process]) => {
}
sidebar.close()
loadModels()
}
})
@ -422,7 +421,7 @@ onUnmounted(() => {
})
</script>
<template>
<TresGroup name="loaded">
<TresGroup name="loaded" :key="props.source">
<Env v-bind="envVars" />
<!-- <PostProcessing /> -->
<template v-for="item in models">

View File

@ -87,7 +87,8 @@ onMounted(() => {
<TresPerspectiveCamera :position="cameraPosition" ref="camera" />
<OrbitControls v-bind="controlsState" @change="onChange" make-default />
<Suspense>
<LoadModels :source="source" :loaded="set_model_load_status" :loaded_pan="loadedPan" />
<LoadModels :source="source" :loaded="set_model_load_status" :loaded_pan="loadedPan"
:key="source" />
</Suspense>
</TresCanvas>
<div class="homelink" :class="[{ open: sidebar.is_open }]">