summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/bsp.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/bsp.asy')
-rw-r--r--Master/texmf-dist/asymptote/bsp.asy26
1 files changed, 13 insertions, 13 deletions
diff --git a/Master/texmf-dist/asymptote/bsp.asy b/Master/texmf-dist/asymptote/bsp.asy
index 2a4d93daa81..cf9d7e0781f 100644
--- a/Master/texmf-dist/asymptote/bsp.asy
+++ b/Master/texmf-dist/asymptote/bsp.asy
@@ -184,20 +184,20 @@ void add(picture pic=currentpicture, face[] faces,
for(int i=0; i < n; ++i)
Faces[i]=faces[i].copy();
- pic.nodes.push(new void (frame f, transform t, transform T,
- pair m, pair M) {
- // Fit all of the pictures so we know their exact sizes.
- face[] faces=new face[n];
- for(int i=0; i < n; ++i) {
- faces[i]=Faces[i].copy();
- face F=faces[i];
- F.t=t*T*F.pic.T;
- F.fit=F.pic.fit(t,T*F.pic.T,m,M);
- }
+ pic.add(new void (frame f, transform t, transform T,
+ pair m, pair M) {
+ // Fit all of the pictures so we know their exact sizes.
+ face[] faces=new face[n];
+ for(int i=0; i < n; ++i) {
+ faces[i]=Faces[i].copy();
+ face F=faces[i];
+ F.t=t*T*F.pic.T;
+ F.fit=F.pic.fit(t,T*F.pic.T,m,M);
+ }
- bsp bsp=bsp(faces,P);
- if(bsp != null) bsp.add(f);
- });
+ bsp bsp=bsp(faces,P);
+ if(bsp != null) bsp.add(f);
+ });
for(int i=0; i < n; ++i) {
picture F=Faces[i].pic;