This commit is contained in:
zh
2025-08-09 09:33:14 +08:00
parent ef3a682724
commit bdc7e58263

View File

@ -766,6 +766,8 @@ class BillboardObject extends Base {
_this._frameImages = [] _this._frameImages = []
superGif.load(function (status) { superGif.load(function (status) {
if (status == 404) { if (status == 404) {
let width = 31
let height = 36
canvas = document.createElement('canvas') canvas = document.createElement('canvas')
canvas.width = 0 canvas.width = 0
canvas.height = 0 canvas.height = 0
@ -855,6 +857,8 @@ class BillboardObject extends Base {
billboardH = height * (31 / width) billboardH = height * (31 / width)
} }
image.onerror = function (err) { image.onerror = function (err) {
let width = 31
let height = 36
canvas.width = 0 canvas.width = 0
canvas.height = 0 canvas.height = 0
billboardH = 0 billboardH = 0
@ -2344,7 +2348,7 @@ class BillboardObject extends Base {
} }
async updateHeight() { async updateHeight() {
if(!this.sdk || !this.sdk.viewer || !this.sdk.viewer.scene) { if (!this.sdk || !this.sdk.viewer || !this.sdk.viewer.scene) {
return return
} }
let height let height