This commit is contained in:
yushijinhun 2020-02-01 20:43:02 +08:00
parent 8a474cbc8c
commit 872f012e42
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 2 additions and 4 deletions

View File

@ -162,8 +162,7 @@ export class SkinViewer {
}
get width(): number {
const target = new Vector2();
return this.renderer.getSize(target).width;
return this.renderer.getSize(new Vector2()).width;
}
set width(newWidth: number) {
@ -171,8 +170,7 @@ export class SkinViewer {
}
get height(): number {
const target = new Vector2();
return this.renderer.getSize(target).height;
return this.renderer.getSize(new Vector2()).height;
}
set height(newHeight: number) {