Skip to content

Commit

Permalink
Update Prebuilt Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
epreston committed Sep 15, 2023
1 parent d603386 commit 04fc964
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 80 deletions.
45 changes: 26 additions & 19 deletions build/playcanvas-spine.3.6.js
Original file line number Diff line number Diff line change
Expand Up @@ -8797,6 +8797,7 @@ var spine = (function (pc) {
this.skeletonVersion = semver.valid(semver.coerce(_skeletonData.version));
this._spine_3_6_0 = semver.satisfies(this.skeletonVersion, '<=3.6.0');
this._spine_3_7_99 = semver.satisfies(this.skeletonVersion, '<=3.7.99');
this._spine_4_0_X = semver.satisfies(this.skeletonVersion, '~4.0.0');
this._spine_4_1_X = semver.satisfies(this.skeletonVersion, '~4.1.23');
this.skeleton = new spine$1.Skeleton(_skeletonData);
this.skeleton.updateWorldTransform();
Expand Down Expand Up @@ -8935,26 +8936,32 @@ var spine = (function (pc) {
} else if (attachment instanceof spine$1.MeshAttachment) {
slot._active.type = ATTACHMENT_TYPE.MESH;
}
if (attachment.region && attachment.region.texture) {
var texture = attachment.region.texture.pcTexture;
if (texture) {
if (texture instanceof pc__namespace.StandardMaterial) {
this._materials[texture.name] = texture;
slot.material = texture.name;
} else {
var key = null;
if (texture.name) {
key = texture.name;
} else if (texture.getSource() instanceof Image) {
key = texture.getSource().getAttribute('src');
}
if (key) {
if (this._materials[key] === undefined) {
var material = this.createMaterial(texture);
this._materials[key] = material;
}
slot.material = key;
var texture = null;
if (attachment.region) {
if (attachment.region.texture) {
texture = attachment.region.texture.pcTexture;
}
if (attachment.region.page && attachment.region.page.texture) {
texture = attachment.region.page.texture.pcTexture;
}
}
if (texture) {
if (texture instanceof pc__namespace.StandardMaterial) {
this._materials[texture.name] = texture;
slot.material = texture.name;
} else {
var key = null;
if (texture.name) {
key = texture.name;
} else if (texture.getSource() instanceof Image) {
key = texture.getSource().getAttribute('src');
}
if (key) {
if (this._materials[key] === undefined) {
var material = this.createMaterial(texture);
this._materials[key] = material;
}
slot.material = key;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.3.6.min.js

Large diffs are not rendered by default.

45 changes: 26 additions & 19 deletions build/playcanvas-spine.3.8.js
Original file line number Diff line number Diff line change
Expand Up @@ -10305,6 +10305,7 @@ var spine = (function (pc) {
this.skeletonVersion = semver.valid(semver.coerce(_skeletonData.version));
this._spine_3_6_0 = semver.satisfies(this.skeletonVersion, '<=3.6.0');
this._spine_3_7_99 = semver.satisfies(this.skeletonVersion, '<=3.7.99');
this._spine_4_0_X = semver.satisfies(this.skeletonVersion, '~4.0.0');
this._spine_4_1_X = semver.satisfies(this.skeletonVersion, '~4.1.23');
this.skeleton = new spine$1.Skeleton(_skeletonData);
this.skeleton.updateWorldTransform();
Expand Down Expand Up @@ -10443,26 +10444,32 @@ var spine = (function (pc) {
} else if (attachment instanceof spine$1.MeshAttachment) {
slot._active.type = ATTACHMENT_TYPE.MESH;
}
if (attachment.region && attachment.region.texture) {
var texture = attachment.region.texture.pcTexture;
if (texture) {
if (texture instanceof pc__namespace.StandardMaterial) {
this._materials[texture.name] = texture;
slot.material = texture.name;
} else {
var key = null;
if (texture.name) {
key = texture.name;
} else if (texture.getSource() instanceof Image) {
key = texture.getSource().getAttribute('src');
}
if (key) {
if (this._materials[key] === undefined) {
var material = this.createMaterial(texture);
this._materials[key] = material;
}
slot.material = key;
var texture = null;
if (attachment.region) {
if (attachment.region.texture) {
texture = attachment.region.texture.pcTexture;
}
if (attachment.region.page && attachment.region.page.texture) {
texture = attachment.region.page.texture.pcTexture;
}
}
if (texture) {
if (texture instanceof pc__namespace.StandardMaterial) {
this._materials[texture.name] = texture;
slot.material = texture.name;
} else {
var key = null;
if (texture.name) {
key = texture.name;
} else if (texture.getSource() instanceof Image) {
key = texture.getSource().getAttribute('src');
}
if (key) {
if (this._materials[key] === undefined) {
var material = this.createMaterial(texture);
this._materials[key] = material;
}
slot.material = key;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.3.8.min.js

Large diffs are not rendered by default.

44 changes: 25 additions & 19 deletions build/playcanvas-spine.4.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -12352,26 +12352,32 @@ var spine = (function (pc) {
} else if (attachment instanceof MeshAttachment) {
slot._active.type = ATTACHMENT_TYPE.MESH;
}
if (attachment.region && attachment.region.texture) {
var texture = attachment.region.texture.pcTexture;
if (texture) {
if (texture instanceof pc__namespace.StandardMaterial) {
this._materials[texture.name] = texture;
slot.material = texture.name;
} else {
var key = null;
if (texture.name) {
key = texture.name;
} else if (texture.getSource() instanceof Image) {
key = texture.getSource().getAttribute('src');
}
if (key) {
if (this._materials[key] === undefined) {
var material = this.createMaterial(texture);
this._materials[key] = material;
}
slot.material = key;
var texture = null;
if (attachment.region) {
if (attachment.region.texture) {
texture = attachment.region.texture.pcTexture;
}
if (attachment.region.page && attachment.region.page.texture) {
texture = attachment.region.page.texture.pcTexture;
}
}
if (texture) {
if (texture instanceof pc__namespace.StandardMaterial) {
this._materials[texture.name] = texture;
slot.material = texture.name;
} else {
var key = null;
if (texture.name) {
key = texture.name;
} else if (texture.getSource() instanceof Image) {
key = texture.getSource().getAttribute('src');
}
if (key) {
if (this._materials[key] === undefined) {
var material = this.createMaterial(texture);
this._materials[key] = material;
}
slot.material = key;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.4.0.min.js

Large diffs are not rendered by default.

45 changes: 26 additions & 19 deletions build/playcanvas-spine.4.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -12536,6 +12536,7 @@ var spine = (function (pc) {
this.skeletonVersion = semver.valid(semver.coerce(_skeletonData.version));
this._spine_3_6_0 = semver.satisfies(this.skeletonVersion, '<=3.6.0');
this._spine_3_7_99 = semver.satisfies(this.skeletonVersion, '<=3.7.99');
this._spine_4_0_X = semver.satisfies(this.skeletonVersion, '~4.0.0');
this._spine_4_1_X = semver.satisfies(this.skeletonVersion, '~4.1.23');
this.skeleton = new Skeleton(_skeletonData);
this.skeleton.updateWorldTransform();
Expand Down Expand Up @@ -12674,26 +12675,32 @@ var spine = (function (pc) {
} else if (attachment instanceof MeshAttachment) {
slot._active.type = ATTACHMENT_TYPE.MESH;
}
if (attachment.region && attachment.region.texture) {
var texture = attachment.region.texture.pcTexture;
if (texture) {
if (texture instanceof pc__namespace.StandardMaterial) {
this._materials[texture.name] = texture;
slot.material = texture.name;
} else {
var key = null;
if (texture.name) {
key = texture.name;
} else if (texture.getSource() instanceof Image) {
key = texture.getSource().getAttribute('src');
}
if (key) {
if (this._materials[key] === undefined) {
var material = this.createMaterial(texture);
this._materials[key] = material;
}
slot.material = key;
var texture = null;
if (attachment.region) {
if (attachment.region.texture) {
texture = attachment.region.texture.pcTexture;
}
if (attachment.region.page && attachment.region.page.texture) {
texture = attachment.region.page.texture.pcTexture;
}
}
if (texture) {
if (texture instanceof pc__namespace.StandardMaterial) {
this._materials[texture.name] = texture;
slot.material = texture.name;
} else {
var key = null;
if (texture.name) {
key = texture.name;
} else if (texture.getSource() instanceof Image) {
key = texture.getSource().getAttribute('src');
}
if (key) {
if (this._materials[key] === undefined) {
var material = this.createMaterial(texture);
this._materials[key] = material;
}
slot.material = key;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.4.1.min.js

Large diffs are not rendered by default.

0 comments on commit 04fc964

Please sign in to comment.