diff --git a/cocos2d/tilemap/editor/tiled-map.js b/cocos2d/tilemap/editor/tiled-map.js index 85a57069e3..16e0f49c3d 100644 --- a/cocos2d/tilemap/editor/tiled-map.js +++ b/cocos2d/tilemap/editor/tiled-map.js @@ -69,7 +69,7 @@ class TiledMapMeta extends CustomAssetMeta { this.tsxFiles = []; } - static version () { return '1.0.1'; } + static version () { return '1.0.2'; } static defaultType() { return 'tiled-map'; } import (fspath, cb) { @@ -83,6 +83,7 @@ class TiledMapMeta extends CustomAssetMeta { asset.name = Path.basenameNoExt(fspath); asset.tmxXmlStr = data; asset.tmxFolderPath = Path.relative(AssetRootUrl, Url.dirname(db.fspathToUrl(fspath))); + asset.tmxFolderPath = asset.tmxFolderPath.replace('\\', '/'); searchDependFiles(fspath, (err, info) => { if (err) {