diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2014-05-17 18:38:56 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2014-05-17 18:38:56 +0000 |
commit | eee5aedecc1c0c3f484016a2b73f29a6f4cb9cb7 (patch) | |
tree | ca2673ba2b18b70ed6c32fda317dd108afd7c172 /Master/texmf-dist/asymptote/three.asy | |
parent | 237141a8094c14ab28177177c991d14c5041c116 (diff) |
asymptote 2.31
git-svn-id: svn://tug.org/texlive/trunk@34082 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/three.asy')
-rw-r--r-- | Master/texmf-dist/asymptote/three.asy | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Master/texmf-dist/asymptote/three.asy b/Master/texmf-dist/asymptote/three.asy index 1c3716173d3..210ed55ddfe 100644 --- a/Master/texmf-dist/asymptote/three.asy +++ b/Master/texmf-dist/asymptote/three.asy @@ -3,7 +3,7 @@ private import math; if(inXasyMode) settings.render=0; if(prc0()) { - if(settings.tex == "context") settings.prc=false; + if(!latex()) settings.prc=false; else { access embed; Embed=embed.embedplayer; @@ -1611,8 +1611,7 @@ transform transform(triple u, triple v, triple O=O, projection P=currentprojection) { transform3 t=P.t; - static real[] O={0,0,0,1}; - real[] tO=t*O; + real[] tO=t*new real[] {O.x,O.y,O.z,1}; real tO3=tO[3]; real factor=1/tO3^2; real[] x=(tO3*t[0]-tO[0]*t[3])*factor; |