Skip to content

Commit 7630827

Browse files
yaustarSteven Yau
andauthored
Call upgradeDataSchema if there is no error (playcanvas#2450)
Co-authored-by: Steven Yau <syau@snaphcat.com>
1 parent db49fe8 commit 7630827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/font.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Object.assign(FontHandler.prototype, {
5757
retry: this.retryRequests
5858
}, function (err, response) {
5959
// update asset data
60-
var data = upgradeDataSchema(response);
6160
if (!err) {
61+
var data = upgradeDataSchema(response);
6262
self._loadTextures(url.load.replace('.json', '.png'), data, function (err, textures) {
6363
if (err) return callback(err);
6464

0 commit comments

Comments
 (0)