.xml -> .mxml
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4189 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -65,7 +65,7 @@ public class CompileModel
|
||||
String spath = source.toString();
|
||||
int didx = spath.lastIndexOf('.');
|
||||
String root = (didx == -1) ? spath : spath.substring(0, didx);
|
||||
File content = new File(root + ".xml"),
|
||||
File content = new File(root + ".mxml"),
|
||||
target = new File(root + ".dat");
|
||||
boolean needsUpdate = false;
|
||||
if (source.lastModified() >= target.lastModified() ||
|
||||
@@ -85,7 +85,7 @@ public class CompileModel
|
||||
File[] afiles = new File[anims.length];
|
||||
File dir = source.getParentFile();
|
||||
for (int ii = 0; ii < anims.length; ii++) {
|
||||
afiles[ii] = new File(dir, anims[ii] + ".xml");
|
||||
afiles[ii] = new File(dir, anims[ii] + ".mxml");
|
||||
if (afiles[ii].lastModified() >= target.lastModified()) {
|
||||
needsUpdate = true;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ import com.threerings.jme.model.TextureProvider;
|
||||
/**
|
||||
* A simple viewer application that allows users to examine models and their
|
||||
* animations by loading them from their uncompiled <code>.properties</code> /
|
||||
* <code>.xml</code> representations or their compiled <code>.dat</code>
|
||||
* <code>.mxml</code> representations or their compiled <code>.dat</code>
|
||||
* representations.
|
||||
*/
|
||||
public class ModelViewer extends JmeCanvasApp
|
||||
|
||||
@@ -85,12 +85,12 @@ macroScript TRAnimationExporter category:"File" \
|
||||
persistent global xmlAnimFileName
|
||||
local fileName
|
||||
if (xmlAnimFileName == undefined) then (
|
||||
fileName = maxFilePath + (getFilenameFile maxFileName) + ".xml"
|
||||
fileName = maxFilePath + (getFilenameFile maxFileName) + ".mxml"
|
||||
) else (
|
||||
fileName = xmlAnimFileName
|
||||
)
|
||||
fileName = getSaveFileName caption:"Select File to Export" \
|
||||
filename:fileName types:"XML Animations (*.XML)|*.xml|All|*.*"
|
||||
filename:fileName types:"XML Animations (*.MXML)|*.mxml|All|*.*"
|
||||
if fileName != undefined do (
|
||||
xmlAnimFileName = fileName
|
||||
writeAnimation fileName
|
||||
|
||||
@@ -179,12 +179,12 @@ macroScript TRModelExporter category:"File" \
|
||||
persistent global xmlModelFileName
|
||||
local fileName
|
||||
if (xmlModelFileName == undefined) then (
|
||||
fileName = maxFilePath + (getFilenameFile maxFileName) + ".xml"
|
||||
fileName = maxFilePath + (getFilenameFile maxFileName) + ".mxml"
|
||||
) else (
|
||||
fileName = xmlModelFileName
|
||||
)
|
||||
fileName = getSaveFileName caption:"Select File to Export" \
|
||||
filename:fileName types:"XML Models (*.XML)|*.xml|All|*.*"
|
||||
filename:fileName types:"XML Models (*.MXML)|*.mxml|All|*.*"
|
||||
if fileName != undefined do (
|
||||
xmlModelFileName = fileName
|
||||
writeModel fileName
|
||||
|
||||
Reference in New Issue
Block a user