From: <ha...@us...> - 2009-07-20 02:46:01
|
Revision: 11263 http://jmol.svn.sourceforge.net/jmol/?rev=11263&view=rev Author: hansonr Date: 2009-07-20 02:45:55 +0000 (Mon, 20 Jul 2009) Log Message: ----------- write xxx.wrl as alternative to write xxx.vrml recognized as VRML -- also popup menu item changed to WRL from WML Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/ScriptEvaluator.java Modified: trunk/Jmol/src/org/jmol/viewer/ScriptEvaluator.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/ScriptEvaluator.java 2009-07-20 02:30:14 UTC (rev 11262) +++ trunk/Jmol/src/org/jmol/viewer/ScriptEvaluator.java 2009-07-20 02:45:55 UTC (rev 11263) @@ -10364,7 +10364,8 @@ if (tok == Token.image) { pt++; } else if (tok == Token.frame) { - if (args[++pt].tok == Token.expressionBegin || args[pt].tok == Token.bitset) { + if (args[++pt].tok == Token.expressionBegin + || args[pt].tok == Token.bitset) { bsFrames = expression(args, pt, 0, true, false, true, true); pt = iToken + 1; } else { @@ -10461,7 +10462,7 @@ if (type.equals("MNU")) type = "MENU"; else if (type.equals("WRL") || type.equals("VRML")) { - type = type.substring(0, 1) + type.substring(1).toLowerCase(); + type = "Vrml"; isExport = true; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |