mirror of
https://github.com/ayangweb/BongoCat.git
synced 2026-03-12 17:51:48 +08:00
fix: 修复切换模型时报 undefined 的问题 (#775)
This commit is contained in:
@@ -73,7 +73,11 @@ class Live2d {
|
||||
}
|
||||
|
||||
public destroy() {
|
||||
if (!this.model) return
|
||||
|
||||
this.model?.destroy()
|
||||
|
||||
this.model = null
|
||||
}
|
||||
|
||||
public resizeModel(modelSize: ModelSize) {
|
||||
|
||||
Reference in New Issue
Block a user