diff --git a/components/model/fence.vue b/components/model/fence.vue index 4f3502f..a8dc6e9 100644 --- a/components/model/fence.vue +++ b/components/model/fence.vue @@ -58,12 +58,13 @@ watch([instanced_lamelle, fence_section, extra_section, lamelles_count], (mesh) instanced_lamelle.value.setMatrixAt(i, newmatrix); if (i >= lamelles_count.value) { - instanced_lamelle.value.setMatrixAt(i, new Matrix4().makeTranslation(new Vector3(0,0,-2))); + instanced_lamelle.value.setMatrixAt(i, new Matrix4().makeTranslation(new Vector3(0, 2, 2))); } } instanced_lamelle.value.instanceMatrix.needsUpdate = true } }); + watch([section_count, fence_section, extra_section], () => { extra.value = (extra_section.value && props.index == (section_count.value + 1)) ? extra_section.value * 0.001 : false if (extra_section && props.index == (section_count.value + 1)) { @@ -80,16 +81,13 @@ watch([section_count, fence_section, extra_section], () => {