pixelkiln 0.91.1 → 0.91.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +11 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10747,11 +10747,18 @@ function assetInStyle(asset, styleId, style) {
|
|
|
10747
10747
|
function parentAssetId(asset) {
|
|
10748
10748
|
return asset?.revision?.from ?? asset?.state?.of ?? asset?.animation?.of ?? asset?.portrait?.of ?? asset?.outfit?.of;
|
|
10749
10749
|
}
|
|
10750
|
-
function dependencyAssetIds(asset) {
|
|
10750
|
+
function dependencyAssetIds(asset, styleAnchors = []) {
|
|
10751
10751
|
const parent = parentAssetId(asset);
|
|
10752
10752
|
return [
|
|
10753
10753
|
...parent ? [parent] : [],
|
|
10754
|
-
...[
|
|
10754
|
+
...[
|
|
10755
|
+
asset?.connect?.lower?.of,
|
|
10756
|
+
asset?.connect?.upper?.of,
|
|
10757
|
+
asset?.animation?.motionFrom,
|
|
10758
|
+
asset?.mirror,
|
|
10759
|
+
asset?.styleCharacter,
|
|
10760
|
+
...asset?.styleCharacter ? [] : styleAnchors
|
|
10761
|
+
].filter((id) => Boolean(id))
|
|
10755
10762
|
];
|
|
10756
10763
|
}
|
|
10757
10764
|
function formatManifestIssues(issues) {
|
|
@@ -10841,9 +10848,10 @@ async function resolveSpecs(loaded, filter) {
|
|
|
10841
10848
|
}
|
|
10842
10849
|
const requestedAssetIds = new Set(assetFilter.length ? assetFilter : Object.keys(manifest.assets));
|
|
10843
10850
|
const resolutionAssetIds = new Set(requestedAssetIds);
|
|
10851
|
+
const styleAnchors = Object.values(manifest.styles).map((style) => style.styleCharacter).filter((id) => Boolean(id));
|
|
10844
10852
|
const pending = [...requestedAssetIds];
|
|
10845
10853
|
while (pending.length) {
|
|
10846
|
-
for (const dependency of dependencyAssetIds(manifest.assets[pending.pop()])) {
|
|
10854
|
+
for (const dependency of dependencyAssetIds(manifest.assets[pending.pop()], styleAnchors)) {
|
|
10847
10855
|
if (resolutionAssetIds.has(dependency) || !manifest.assets[dependency]) continue;
|
|
10848
10856
|
resolutionAssetIds.add(dependency);
|
|
10849
10857
|
pending.push(dependency);
|