Reworked keyboard code so it's more correct and general
This commit is contained in:
parent
bf302deab1
commit
f5bf232f0e
Binary file not shown.
@ -142,10 +142,10 @@ def model():
|
|||||||
width=width,
|
width=width,
|
||||||
height=height,
|
height=height,
|
||||||
thickness=thickness,
|
thickness=thickness,
|
||||||
bottom_face=">Z", # Yes >Z
|
bottom_face="<Z",
|
||||||
back_face=None,
|
back_face=None,
|
||||||
offset_x=0,
|
offset_x=0,
|
||||||
offset_y=height - keyboard.kbd_height,
|
offset_y=kbd_height,
|
||||||
shell_t=shell_t,
|
shell_t=shell_t,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@ def add(
|
|||||||
):
|
):
|
||||||
|
|
||||||
# USB Hub extrusions
|
# USB Hub extrusions
|
||||||
print(offset_x)
|
|
||||||
if bottom_face:
|
if bottom_face:
|
||||||
for element in elements:
|
for element in elements:
|
||||||
model = extrude_shape(
|
model = extrude_shape(
|
||||||
|
Loading…
Reference in New Issue
Block a user