summaryrefslogtreecommitdiff
path: root/inc/cad
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-11-23 22:12:27 +0100
committerJesper Jensen <jesper@jnsn.dev>2025-11-23 22:12:27 +0100
commitf8463d52a7c6cb6de6fde0f2472c44cf35e2452a (patch)
tree13850d2d04d72d67b04cc1375f8a2111432e41c2 /inc/cad
parent84f11b37d178242d4ff80c4f3b4eddb54efe59ea (diff)
Move angle offsets to the construction VM
Diffstat (limited to 'inc/cad')
-rw-r--r--inc/cad/construction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/cad/construction.h b/inc/cad/construction.h
index 9f4b9ca..71bc432 100644
--- a/inc/cad/construction.h
+++ b/inc/cad/construction.h
@@ -3,6 +3,7 @@
enum operation {
CMD_VALUE_INPUT,
+ CMD_OFFSET_INPUT,
CMD_ORIGIN,
CMD_LINE_X,
CMD_CIRCLE_CENTER_RADIUS,
@@ -56,7 +57,10 @@ struct command {
uint8_t root;
bool hidden;
+ // Only used for input commands
size_t index;
+ bool dir;
+
struct element *arg1;
struct element *arg2;
struct element *arg3;