Make vecrender callable from terminal.
This commit is contained in:
parent
659e41c80f
commit
c5e26ab1ec
|
@ -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).
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user