Those who are visiting scene objects in this manner don't expect that their ObjectInfo is going to get stomped on by the next iteration. Let's do this safely and make each visit get its own object - it's also much more consistent with visiting interesting objects.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@855 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Mike Thomas
2009-09-03 22:12:16 +00:00
parent e4c91222a7
commit 63bbe83a00
@@ -322,8 +322,8 @@ public class SparseMisoSceneModel extends MisoSceneModel
visitor.visit(oinfo);
}
if (!interestingOnly) {
ObjectInfo info = new ObjectInfo();
for (int oo = 0; oo < sect.objectTileIds.length; oo++) {
ObjectInfo info = new ObjectInfo();
info.tileId = sect.objectTileIds[oo];
info.x = sect.objectXs[oo];
info.y = sect.objectYs[oo];