diff options
Diffstat (limited to 'graphics/asymptote/main.cc')
-rw-r--r-- | graphics/asymptote/main.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/asymptote/main.cc b/graphics/asymptote/main.cc index 4359111829..f4a40d0a6c 100644 --- a/graphics/asymptote/main.cc +++ b/graphics/asymptote/main.cc @@ -192,7 +192,12 @@ void *asymain(void *A) } } else { for(int ind=0; ind < n; ind++) { - processFile(string(getArg(ind)),n > 1); + string name=(getArg(ind)); + if(name == stripExt(name)+".v3d") { + interact::uptodate=false; + runString("import v3d; importv3d(\""+name+"\");"); + } else + processFile(name,n > 1); try { if(ind < n-1) setOptions(args->argc,args->argv); |