Skip to content

Commit

Permalink
修复vector2 y=0赋值错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
esengine committed Aug 6, 2020
1 parent 8e3bcc1 commit d0199e3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/libs/framework/framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion demo/libs/framework/framework.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source/bin/framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion source/bin/framework.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source/src/Math/Vector2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module es {
*/
constructor(x?: number, y?: number) {
this.x = x ? x : 0;
this.y = y ? y : this.x;
this.y = y != undefined ? y : this.x;
}

public static get zero() {
Expand Down

0 comments on commit d0199e3

Please sign in to comment.