Skip to content

Commit

Permalink
Merge pull request #550 from abaire/master
Browse files Browse the repository at this point in the history
Populates incorrect constants for Vector2 and 3 types.
  • Loading branch information
Zylann authored May 3, 2021
2 parents d7c55b1 + 2ccc5e0 commit 1637975
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/Vector2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

namespace godot {

const Vector2 Vector2::ZERO;
const Vector2 Vector2::ONE;
const Vector2 Vector2::INF;
const Vector2 Vector2::ZERO = Vector2();
const Vector2 Vector2::ONE = Vector2(1, 1);
const Vector2 Vector2::INF = Vector2(INFINITY, INFINITY);

const Vector2 Vector2::LEFT = Vector2(-1, 0);
const Vector2 Vector2::RIGHT = Vector2(1, 0);
Expand Down
2 changes: 1 addition & 1 deletion src/core/Vector3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace godot {

const Vector3 Vector3::ZERO = Vector3();
const Vector3 Vector3::ONE = Vector3();
const Vector3 Vector3::ONE = Vector3(1, 1, 1);
const Vector3 Vector3::INF = Vector3(INFINITY, INFINITY, INFINITY);

const Vector3 Vector3::LEFT = Vector3(-1, 0, 0);
Expand Down

0 comments on commit 1637975

Please sign in to comment.