diff --git a/components/model/fence.vue b/components/model/fence.vue
index d30e1c3..194d9e0 100644
--- a/components/model/fence.vue
+++ b/components/model/fence.vue
@@ -1,13 +1,14 @@
-
+
@@ -102,7 +110,7 @@ if (props.index > 3) {
-
+
@@ -123,7 +131,7 @@ if (props.index > 3) {
-
diff --git a/components/model/parametric.vue b/components/model/parametric.vue
index a2e3967..0ea6e8b 100644
--- a/components/model/parametric.vue
+++ b/components/model/parametric.vue
@@ -7,6 +7,7 @@ import { EXRLoader } from 'three/examples/jsm/Addons.js';
import { useGLTF, } from '@tresjs/cientos'
const section_count = useState('section_count')
+const extra_section = useState('extra_section')
const { scene, renderer, camera } = useTresContext()
renderer.value.toneMapping = ReinhardToneMapping
@@ -20,9 +21,9 @@ const { scene: fastening } = await useGLTF('/models_one/krepleniye_planok (1).gl
const { scene: lamelle } = await useGLTF('/models_one/lamel_100.glb')
const { seek } = useSeek()
-watch(section_count, () => {
+watch([section_count,extra_section], () => {
const base = seek(scene.value, 'name', 'base')
- const n = (section_count.value as number)
+ const n = (section_count.value as number) + ~~(!!extra_section.value)
if (base?.children && n < base?.children.length) {
base.children = [...base?.children.slice(0, n)]
}
@@ -47,7 +48,7 @@ onMounted(() => {
-
+