From c5e26ab1ec0e4b125087bef395417a9b1f7b2990 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Fri, 23 Jul 2021 21:59:51 +0000 Subject: [PATCH] Make vecrender callable from terminal. --- debug/vecrender.ks | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debug/vecrender.ks b/debug/vecrender.ks index bcaf850..4b46ed8 100644 --- a/debug/vecrender.ks +++ b/debug/vecrender.ks @@ -1,5 +1,7 @@ @lazyglobal off. +parameter vec is false. + local draws is list(). function DrawVectorWithComponents { @@ -17,3 +19,7 @@ function DrawVectorWithComponents { set d to VecDraw(V(0,0,0), V(0,0,vec:Z), BLUE, "z", 1.0, true). list:add(d). } + +if vec <> false { + DrawVectorWithComponents(vec). +}