Skip to content

Commit

Permalink
assetpaths in export
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Nov 11, 2024
1 parent c1c1951 commit dd5e371
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions shared/api/export/shared_export_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,10 @@ export default class SharedExportService extends SharedUtil
}
else
{
let pathfn = path.join(this._cables.getExportAssetTargetPath(), "/" + fn);

let pathfn = path.join(this._cables.getExportAssetTargetPath(), fn);
if (!fs.existsSync(pathfn))
{
pathfn = path.join(this._cables.getExportAssetTargetPath(), "/" + proj._id + "/" + fn);
pathfn = path.join(this._cables.getExportAssetTargetPath(), proj._id, fn);
}

if (!fs.existsSync(pathfn))
Expand Down Expand Up @@ -918,7 +917,7 @@ export default class SharedExportService extends SharedUtil
for (let l = 0; l < libs.length; l++)
{
const lib = libs[l];
let libPath = path.join(this._cables.getLibsPath(), "/", lib);
let libPath = path.join(this._cables.getLibsPath(), lib);
let libSrc = path.join(this.finalJsPath, lib);
if (this._libsUtil.isAssetLib(lib))
{
Expand Down

0 comments on commit dd5e371

Please sign in to comment.