summaryrefslogtreecommitdiffstats
path: root/case
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-24 22:12:33 -0500
committerXANTRONIX Development2023-11-24 22:12:33 -0500
commitabd2e4a922e9e7733b8bf10e4b1987c0a231e105 (patch)
treef5b02058994748627473926c8d12f2d5188b835f /case
parent50fcb5fdbfeb7119c40c67c09877edb968e18a65 (diff)
downloadxantronix-z32-abd2e4a922e9e7733b8bf10e4b1987c0a231e105.tar.gz
xantronix-z32-abd2e4a922e9e7733b8bf10e4b1987c0a231e105.tar.bz2
xantronix-z32-abd2e4a922e9e7733b8bf10e4b1987c0a231e105.zip
That's a bit tidier
Diffstat (limited to 'case')
-rw-r--r--case/top.scad6
1 files changed, 3 insertions, 3 deletions
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 <keyboard.scad>
include <logo.scad>
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();