Skip to content

Commit

Permalink
Fixed issue with Basis compressed sprite sheets (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaustar and steveny-sc authored Aug 31, 2021
1 parent 5497227 commit 9bc4402
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/playcanvas-spine.3.6.js
Original file line number Diff line number Diff line change
Expand Up @@ -7334,7 +7334,7 @@ pc.extend(pc, function () {
var textureData = {};
for (var i = 0, n = this.textureAssets.length; i < n; i++) {
var asset = this.system.app.assets.get(this.textureAssets[i]);
var path = asset.file ? asset.file.filename : null;
var path = asset.name ? asset.name : (asset.file ? asset.file.filename : null);
// Fallback if filename doesn't exist
if (!path) {
path = pc.path.getBasename(asset.file.url);
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.3.6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/playcanvas-spine.3.8.js
Original file line number Diff line number Diff line change
Expand Up @@ -8894,7 +8894,7 @@ pc.extend(pc, function () {
var textureData = {};
for (var i = 0, n = this.textureAssets.length; i < n; i++) {
var asset = this.system.app.assets.get(this.textureAssets[i]);
var path = asset.file ? asset.file.filename : null;
var path = asset.name ? asset.name : (asset.file ? asset.file.filename : null);
// Fallback if filename doesn't exist
if (!path) {
path = pc.path.getBasename(asset.file.url);
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.3.8.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/component/spine-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pc.extend(pc, function () {
var textureData = {};
for (var i = 0, n = this.textureAssets.length; i < n; i++) {
var asset = this.system.app.assets.get(this.textureAssets[i]);
var path = asset.file ? asset.file.filename : null;
var path = asset.name ? asset.name : (asset.file ? asset.file.filename : null);
// Fallback if filename doesn't exist
if (!path) {
path = pc.path.getBasename(asset.file.url);
Expand Down

0 comments on commit 9bc4402

Please sign in to comment.