Make vecrender callable from terminal.

This commit is contained in:
Anna Rose 2021-07-23 21:59:51 +00:00
parent 659e41c80f
commit c5e26ab1ec

View File

@ -1,5 +1,7 @@
@lazyglobal off. @lazyglobal off.
parameter vec is false.
local draws is list(). local draws is list().
function DrawVectorWithComponents { 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). set d to VecDraw(V(0,0,0), V(0,0,vec:Z), BLUE, "z", 1.0, true).
list:add(d). list:add(d).
} }
if vec <> false {
DrawVectorWithComponents(vec).
}