fix: 修复切换模型时报 undefined 的问题 (#775)

This commit is contained in:
ayangweb
2026-01-06 22:45:11 +08:00
committed by GitHub
parent 50803eb2ce
commit 2fc6ec9d2f

View File

@@ -73,7 +73,11 @@ class Live2d {
}
public destroy() {
if (!this.model) return
this.model?.destroy()
this.model = null
}
public resizeModel(modelSize: ModelSize) {