Skip to content

Commit

Permalink
Fix importing packed assets
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Aug 20, 2023
1 parent 8134415 commit 6700e8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions base/Sources/arm/io/ExportArm.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class ExportArm {
}

public static function runProject() {

#if (is_paint || is_sculpt)
var mnodes: Array<TNodeCanvas> = [];
for (m in Project.materials) {
Expand Down Expand Up @@ -108,7 +107,7 @@ class ExportArm {
}
#end

var packed_assets = Project.raw.packed_assets == null || Project.raw.packed_assets.length == 0 ? null : Project.raw.packed_assets;
var packed_assets = (Project.raw.packed_assets == null || Project.raw.packed_assets.length == 0) ? null : Project.raw.packed_assets;
#if krom_ios
var sameDrive = false;
#else
Expand Down
2 changes: 2 additions & 0 deletions base/Sources/arm/io/ImportArm.hx
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ class ImportArm {
// Convert image path from relative to absolute
var abs = Data.isAbsolute(file) ? file : base + file;
if (project.packed_assets != null) {
abs = Path.normalize(abs);
unpackAsset(project, abs, file);
}
if (Data.cachedImages.get(abs) == null && !File.exists(abs)) {
Expand Down Expand Up @@ -527,6 +528,7 @@ class ImportArm {
// Convert image path from relative to absolute
var abs = Data.isAbsolute(file) ? file : base + file;
if (project.packed_assets != null) {
abs = Path.normalize(abs);
unpackAsset(project, abs, file);
}
if (Data.cachedImages.get(abs) == null && !File.exists(abs)) {
Expand Down

0 comments on commit 6700e8a

Please sign in to comment.