diff --git a/src/java/com/threerings/miso/tools/xml/XMLSceneWriter.java b/src/java/com/threerings/miso/tools/xml/XMLSceneWriter.java index ca9b34ea7..7a17c245f 100644 --- a/src/java/com/threerings/miso/tools/xml/XMLSceneWriter.java +++ b/src/java/com/threerings/miso/tools/xml/XMLSceneWriter.java @@ -1,5 +1,5 @@ // -// $Id: XMLSceneWriter.java,v 1.15 2001/10/11 00:41:27 shaper Exp $ +// $Id: XMLSceneWriter.java,v 1.16 2001/10/17 22:18:22 shaper Exp $ package com.threerings.miso.scene.xml; @@ -17,6 +17,7 @@ import com.threerings.media.tile.Tile; import com.threerings.miso.Log; import com.threerings.miso.scene.*; +import com.threerings.miso.tile.ShadowTile; /** * The XMLSceneWriter writes a {@link @@ -218,6 +219,14 @@ public class XMLSceneWriter extends DataWriter continue; } + // replace shadow tiles with the default tile for the + // scene since they'll be re-created when the object's + // footprint is stamped into the scene upon its + // un-serialization + if (tile instanceof ShadowTile) { + tile = scene.getDefaultTile(); + } + buf.append(tile.tsid).append(","); buf.append(tile.tid); if (ii != numtiles - 1) {