mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Merge pull request #681 from natural-law/issue3007
Solve the error in TiledMap when build for android on Windows.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user