From abd2e4a922e9e7733b8bf10e4b1987c0a231e105 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 24 Nov 2023 22:12:33 -0500 Subject: That's a bit tidier --- case/top.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'case') diff --git a/case/top.scad b/case/top.scad index cbaa386..e4bfabb 100644 --- a/case/top.scad +++ b/case/top.scad @@ -6,8 +6,6 @@ include include module top_case(with_keyboard=false) { - keyboard_deck_z_offset = wall_height - keyboard_switch_height; - accent_width = 1.0000; accent_depth = 0.5; accent_y_stride = (keyboard_pcb_length - accent_width) / 5.0; @@ -207,9 +205,11 @@ module top_case(with_keyboard=false) { screw_posts(); if (with_keyboard) { + z_offset = wall_height - keyboard_switch_height; + keyboard_supports(); - translate([keyboard_x_offset, keyboard_y_offset, keyboard_deck_z_offset]) + translate([keyboard_x_offset, keyboard_y_offset, z_offset]) keyboard_deck(wall_width); } else { supports(); -- cgit v1.2.3