mc-assets 0.2.36 → 0.2.37
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/assetsParser.js +5 -6
- package/package.json +1 -1
package/dist/assetsParser.js
CHANGED
|
@@ -203,12 +203,6 @@ export class AssetsParser {
|
|
|
203
203
|
collectModels(modelData);
|
|
204
204
|
collectedParentModels.reverse(); // from parent to child
|
|
205
205
|
for (const model of collectedParentModels) {
|
|
206
|
-
if (model.ambientocclusion !== undefined) {
|
|
207
|
-
this.resolvedModel.ao = model.ambientocclusion;
|
|
208
|
-
}
|
|
209
|
-
if (model.ao !== undefined) {
|
|
210
|
-
this.resolvedModel.ao = model.ao;
|
|
211
|
-
}
|
|
212
206
|
if (model.textures) {
|
|
213
207
|
this.resolvedModel.textures ??= {};
|
|
214
208
|
for (let [key, value] of Object.entries(model.textures)) {
|
|
@@ -226,6 +220,11 @@ export class AssetsParser {
|
|
|
226
220
|
if (model.elements) {
|
|
227
221
|
this.resolvedModel.elements = structuredClone(model.elements);
|
|
228
222
|
}
|
|
223
|
+
for (const [key, value] of Object.entries(model)) {
|
|
224
|
+
if (typeof value === 'boolean') {
|
|
225
|
+
this.resolvedModel[key] = value;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
229
228
|
}
|
|
230
229
|
const resolveTexture = (originalTexturePath, _originalKey, chain) => {
|
|
231
230
|
chain.push(_originalKey);
|