修复vector2 y=0赋值错误问题

This commit is contained in:
yhh
2020-08-06 10:55:02 +08:00
parent 8e3bcc1257
commit d0199e357b
5 changed files with 5 additions and 5 deletions

View File

@@ -638,7 +638,7 @@ var es;
this.x = 0;
this.y = 0;
this.x = x ? x : 0;
this.y = y ? y : this.x;
this.y = y != undefined ? y : this.x;
}
Object.defineProperty(Vector2, "zero", {
get: function () {

File diff suppressed because one or more lines are too long