This commit is contained in:
aarizona 2024-08-29 18:41:03 +03:00
parent 3379a26036
commit e62d317f1e
3 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="ru">
<head> <head>
<meta charset="UTF-8" /> <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> <title>Проекты Кустарщины</title>
</head> </head>
<body> <body>

View File

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

View File

@ -87,7 +87,8 @@ onMounted(() => {
<TresPerspectiveCamera :position="cameraPosition" ref="camera" /> <TresPerspectiveCamera :position="cameraPosition" ref="camera" />
<OrbitControls v-bind="controlsState" @change="onChange" make-default /> <OrbitControls v-bind="controlsState" @change="onChange" make-default />
<Suspense> <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> </Suspense>
</TresCanvas> </TresCanvas>
<div class="homelink" :class="[{ open: sidebar.is_open }]"> <div class="homelink" :class="[{ open: sidebar.is_open }]">