Add a workaround for the legacy map editor.

This commit is contained in:
Paul Chote
2014-07-23 11:40:30 +12:00
parent 029da5116b
commit 6b1cecc6b4
4 changed files with 14 additions and 6 deletions

View File

@@ -47,8 +47,7 @@ namespace OpenRA.Editor
public static ActorTemplate RenderActor(ActorInfo info, TileSet tileset, IPalette p)
{
var image = RenderSprites.GetImage(info);
var image = info.Traits.Get<ILegacyEditorRenderInfo>().EditorImage(info);
using (var s = GlobalFileSystem.OpenWithExts(image, tileset.Extensions))
{
var shp = new ShpReader(s);