Write the default scene tile in lieu of shadow tiles since shadow
tiles will be re-generated when the object footprint is stamped on scene un-serialization. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@478 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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 <code>XMLSceneWriter</code> 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) {
|
||||
|
||||
Reference in New Issue
Block a user