Merge pull request #1582 from adrianVmariano/master

turtle3d zjump bugfix
This commit is contained in:
adrianVmariano
2025-02-28 17:37:43 -05:00
committed by GitHub

View File

@@ -541,7 +541,7 @@ function _turtle3d_command(command, parm, parm2, state, index) =
command=="jump" ? _tupdate(state,[move(parm-lastpt)*lastT],[lastPre]):
command=="xjump" ? _tupdate(state,[move([parm,lastpt.y,lastpt.z]-lastpt)*lastT],[lastPre]):
command=="yjump" ? _tupdate(state,[move([lastpt.x,parm,lastpt.z]-lastpt)*lastT],[lastPre]):
command=="yjump" ? _tupdate(state,[move([lastpt.x,lastpt.y,parm]-lastpt)*lastT],[lastPre]):
command=="zjump" ? _tupdate(state,[move([lastpt.x,lastpt.y,parm]-lastpt)*lastT],[lastPre]):
command=="angle" ? assert(parm!=0,str("\"",command,"\" requires nonnegative argument at index ",index))
list_set(state, angle, parm) :
command=="length" ? list_set(state, movestep, parm) :