diff --git a/components/model/fence.vue b/components/model/fence.vue index 0dad41e..9ff3eed 100644 --- a/components/model/fence.vue +++ b/components/model/fence.vue @@ -86,8 +86,16 @@ watch([section_count, fence_section, extra_section], () => { } }) +const setBraceCount = () => { + brace_count.value = Math.ceil(lamelles_count.value / 4) +} + const brace = props.models.brace.clone().children[0] const brace_h = lamelle_height.value * 3 +const brace_count = ref() + +setBraceCount() +watch(lamelles_count, setBraceCount) const pillar = ref([]) const setPillar = () => { @@ -154,8 +162,8 @@ watch([instanced_lamelle, lamelle_color], setLamellesColor) -