bx-1379-redesign #15
|
@ -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>
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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 }]">
|
||||||
|
|
Loading…
Reference in New Issue